| 1 | <?php |
||
| 11 | final class Time |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Converts unix timestamp into an ansi sql timestamp literal |
||
| 15 | * |
||
| 16 | * @param int $unixTimestamp |
||
| 17 | * |
||
| 18 | * @return string ansi sql timestamp surrounded with parenthesis |
||
| 19 | * |
||
| 20 | * @throws \InvalidArgumentException if $unixTimestamp was not an int |
||
| 21 | */ |
||
| 22 | public static function getAnsiSqlTimestamp($unixTimestamp) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get current unix time in milliseconds |
||
| 33 | * |
||
| 34 | * @return int the current unix time |
||
| 35 | */ |
||
| 36 | public static function inMillis() |
||
| 40 | } |
||
| 41 |