| 1 | <?php |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Converts unix timestamp into an ansi sql timestamp literal |
||
| 14 | * |
||
| 15 | * @param int $unixTimestamp |
||
| 16 | * |
||
| 17 | * @return string ansi sql timestamp surrounded with parenthesis |
||
| 18 | * |
||
| 19 | * @throws InvalidArgumentException if $unixTimestamp was not an int |
||
| 20 | */ |
||
| 21 | public static function getAnsiSqlTimestamp(int $unixTimestamp) : string |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get current unix time in milliseconds |
||
| 28 | * |
||
| 29 | * @return int the current unix time |
||
| 30 | */ |
||
| 31 | public static function inMillis() : int |
||
| 35 | } |
||
| 36 |