time Class Reference
Help class for converting seconds to readable string of days, hours etc.
More...
Static Public Member Functions |
static | to_string ($t=0) |
| Convert a given nr of sec to string, day, hour, minute, second.
|
static | get_limits ($time_period, $now) |
Detailed Description
Help class for converting seconds to readable string of days, hours etc.
Member Function Documentation
static time::get_limits |
( |
$ |
time_period, |
|
|
$ |
now | |
|
) |
| | [static] |
- Parameters:
-
| $time_period | string |
| $now | int, Unix timestamp (you probably want to pass the result of time()) |
- Returns:
- array(start_time, end_time)
- Exceptions:
-
The documentation for this class was generated from the following file: