<?php
echo strtotime('03.02.2014');
echo time();
$today = getdate();
print_r($today);
$format = '%d/%m/%Y %H:%M:%S';
$strf = strftime($format);
echo "$strf\n";
print_r(strptime($strf, $format));
- Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.24, 7.3.0 - 7.3.12
- 13913820001391387353Array
(
[seconds] => 13
[minutes] => 29
[hours] => 1
[mday] => 3
[wday] => 1
[mon] => 2
[year] => 2014
[yday] => 33
[weekday] => Monday
[month] => February
[0] => 1391387353
)
03/02/2014 01:29:13
Array
(
[tm_sec] => 13
[tm_min] => 29
[tm_hour] => 1
[tm_mday] => 3
[tm_mon] => 1
[tm_year] => 114
[tm_wday] => 1
[tm_yday] => 33
[unparsed] =>
)
- Output for 5.0.0 - 5.0.5
- -11391387353Array
(
[seconds] => 13
[minutes] => 29
[hours] => 1
[mday] => 3
[wday] => 1
[mon] => 2
[year] => 2014
[yday] => 33
[weekday] => Monday
[month] => February
[0] => 1391387353
)
03/02/2014 01:29:13
Fatal error: Call to undefined function strptime() in /in/Lv205 on line 12
Process exited with code 255. - Output for 4.4.5 - 4.4.9
- -11391387353Array
(
[seconds] => 13
[minutes] => 29
[hours] => 1
[mday] => 3
[wday] => 1
[mon] => 2
[year] => 2014
[yday] => 33
[weekday] => Monday
[month] => February
[0] => 1391387353
)
03/02/2014 01:29:13
Fatal error: Call to undefined function: strptime() in /in/Lv205 on line 12
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
- -11391387353Array
(
[seconds] => 13
[minutes] => 29
[hours] => 1
[mday] => 3
[wday] => 1
[mon] => 2
[year] => 2014
[yday] => 33
[weekday] => Monday
[month] => February
[0] => 1391387353
)
03/02/2014 01:29:13
Fatal error: Call to undefined function: strptime() in /in/Lv205 on line 12
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- -11391387353Array
(
[seconds] => 13
[minutes] => 29
[hours] => 1
[mday] => 3
[wday] => 1
[mon] => 2
[year] => 2014
[yday] => 33
[weekday] => Monday
[month] => February
[0] => 1391387353
)
03/02/2014 01:29:13
Fatal error: Call to undefined function: strptime() in /in/Lv205 on line 12
preferences:
211.12 ms | 402 KiB | 266 Q