| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class Time |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Converts unix timestamp into an ansi sql timestamp literal |
||
| 12 | * |
||
| 13 | * @param int $unixTimestamp |
||
| 14 | * |
||
| 15 | * @return string ansi sql timestamp surrounded with parenthesis |
||
| 16 | */ |
||
| 17 | public static function getAnsiSqlTimestamp(int $unixTimestamp) : string |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get current unix time in milliseconds |
||
| 24 | * |
||
| 25 | * @return int the current unix time |
||
| 26 | */ |
||
| 27 | public static function inMillis() : int |
||
| 32 |