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:
InvalidTimePeriod_Exception if the $time_period is invalid

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1