/hphp/test/zend/good/ext/date/tests/strtotime.php
http://github.com/facebook/hiphop-php · PHP · 12 lines · 11 code · 1 blank · 0 comment · 0 complexity · 1b59c8653b6712d1838eef7c3a8c16c3 MD5 · raw file
- <?hh <<__EntryPoint>> function main(): void {
- date_default_timezone_set('Europe/Oslo');
- $d = varray[];
- $d[] = strtotime("2005-07-14 22:30:41");
- $d[] = strtotime("2005-07-14 22:30:41 GMT");
- $d[] = strtotime("@1121373041");
- $d[] = strtotime("@1121373041 CEST");
- foreach($d as $date) {
- echo date(DATE_ISO8601, $date), "\n";
- }
- }