Download src/php/php-src/ext/date/tests/008.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 776 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/tests/008.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/date/tests/008.phpt
-
curl -L -o 008.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/tests/008.phpt
776 Bytes
| --TEST-- | |
| get() tests | |
| --FILE-- | |
| <?php | |
| date_default_timezone_set('UTC'); | |
| $t = mk(0,0,0, 6, 27, 2006); | |
| var_dump(get($t)); | |
| var_dump(get()); | |
| echo "Done\n"; | |
| ?> | |
| --EXPECTF-- | |
| array(11) { | |
| ["seconds"]=> | |
| (0) | |
| ["minutes"]=> | |
| (0) | |
| ["hours"]=> | |
| (0) | |
| ["mday"]=> | |
| (27) | |
| ["wday"]=> | |
| (2) | |
| ["mon"]=> | |
| (6) | |
| ["year"]=> | |
| (2006) | |
| ["yday"]=> | |
| (177) | |
| ["weekday"]=> | |
| string(7) "Tuesday" | |
| ["month"]=> | |
| string(4) "June" | |
| [0]=> | |
| (1151366400) | |
| } | |
| array(11) { | |
| ["seconds"]=> | |
| (%d) | |
| ["minutes"]=> | |
| (%d) | |
| ["hours"]=> | |
| (%d) | |
| ["mday"]=> | |
| (%d) | |
| ["wday"]=> | |
| (%d) | |
| ["mon"]=> | |
| (%d) | |
| ["year"]=> | |
| (%d) | |
| ["yday"]=> | |
| (%d) | |
| ["weekday"]=> | |
| string(%d) "%s" | |
| ["month"]=> | |
| string(%d) "%s" | |
| [0]=> | |
| (%d) | |
| } | |
| Done | |