Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/date/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/date/tests/strftime_variation23.phpt |
--TEST-- Test strftime() function : usage variation - Checking large positive and negative float values to timestamp. --SKIPIF-- <?php if (PHP_INT_SIZE != 4) echo "skip this test is for 32-bit only"; ?> --FILE-- <?php /* Prototype : string strftime(string format [, int timestamp]) * Description: Format a local time/date according to locale settings * Source code: ext/date/php_date.c * Alias to functions: */ echo "*** Testing strftime() : usage variation ***\n"; // Initialise function arguments not being substituted (if any) setlocale(LC_ALL, "en_US"); date_default_timezone_set("UTC"); $format = '%b %d %Y %H:%M:%S'; echo "\n-- Testing strftime() function with float 12.3456789000e10 to timestamp --\n"; $timestamp = 12.3456789000e10; var_dump( strftime($format, $timestamp) ); echo "\n-- Testing strftime() function with float -12.3456789000e10 to timestamp --\n"; $timestamp = -12.3456789000e10; var_dump( strftime($format, $timestamp) ); ?> ===DONE=== --EXPECTF-- *** Testing strftime() : usage variation *** -- Testing strftime() function with float 12.3456789000e10 to timestamp -- Warning: strftime() expects parameter 2 to be integer, float given in %s on line %d bool(false) -- Testing strftime() function with float -12.3456789000e10 to timestamp -- Warning: strftime() expects parameter 2 to be integer, float given in %s on line %d bool(false) ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare