1 | <?php |
||
12 | class Time extends \Prefab |
||
13 | { |
||
14 | /** |
||
15 | * format a database-specific date/time string. |
||
16 | * |
||
17 | * @param optional int $unixtime the unix time (null = now) |
||
18 | * @param optional string $dbms the database software the timestamp is for |
||
19 | * @return string date in format of database driver |
||
20 | * @todo add a switch for the f3 database driver and set the timestamp |
||
21 | */ |
||
22 | public static function database(int $unixtime = null, string $dbms = null): string |
||
41 | |||
42 | /** |
||
43 | * Utility to convert timestamp into a http header date/time. |
||
44 | * |
||
45 | * @param int time php time value |
||
46 | * @param string $zone timezone |
||
47 | */ |
||
48 | public static function HTTP(int $unixtime = null, string $zone = ''): string |
||
66 | } |
||
67 |