Simple time class to perform basic time calculations
Located in /inc/date.php (line 677)
Constructor for class
Accepts the following for the initial time:
round time up to the nearest $g time-granularity measure
dump the timestring and ticks in a readable format
round time down to the nearest $g time-granularity measure
get a string representation that includes the number of seconds
get a long string representation for the current locale
get a short string representation for the current locale
Get a string representation of this time in the specified format
Recognised format characters are as follows:
a Lowercase Ante meridiem and Post meridiem am or pm A Uppercase Ante meridiem and Post meridiem AM or PM g 12-hour format of an hour without leading zeros 1 through 12 G 24-hour format of an hour without leading zeros 0 through 23 h 12-hour format of an hour with leading zeros 01 through 12 H 24-hour format of an hour with leading zeros 00 through 23 i Minutes with leading zeros 00 to 59 s Seconds, with leading zeros 00 through 59
Obtain hour, minute or seconds parts of the time
return hour, minute or seconds parts of the time, emulating the date('H', $ticks) etc functions, but not using them as they get too badly confused with timezones to be useful in many situations
Documentation generated on Tue, 06 Mar 2007 10:01:13 +0000 by phpDocumentor 1.3.0