PHP's unofficial "native" time format is the UNIX timestamp -- that is to say, the majority of its date/time functions expect (e.g. date()) or produce (e.g. mktime()) a UNIX timestamp, which is the number of seconds since Jan. 1, 1970. Once you have a UNIX timestamp, you can treat it as an int and compare them using your >, <, etc.