<?php
$date_test = '2013-10-31';
$date = datetime::createFromFormat('Y-m-d', $date_test);
echo $date->format('d-m-Y'), PHP_EOL, $date->format('U');
- Output for 5.6.28, 7.0.12 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.1, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- 31-10-2013
1383231959
- Output for 7.3.12
- 31-10-2013
1383231960
- Output for 7.0.6
- 31-10-2013
1383199365
- Output for 7.0.5
- 31-10-2013
1383246163
- Output for 7.0.4
- 31-10-2013
1383196310
- Output for 7.0.3
- 31-10-2013
1383197945
- Output for 7.0.2
- 31-10-2013
1383217921
- Output for 7.0.1
- 31-10-2013
1383237230
- Output for 7.0.0
- 31-10-2013
1383243343
- Output for 5.6.21
- 31-10-2013
1383182383
- Output for 5.6.20
- 31-10-2013
1383231198
- Output for 5.6.19
- 31-10-2013
1383201770
- Output for 5.6.18
- 31-10-2013
1383247077
- Output for 5.6.17
- 31-10-2013
1383213554
- Output for 5.6.16
- 31-10-2013
1383249635
- Output for 5.6.15
- 31-10-2013
1383252780
- Output for 5.6.14
- 31-10-2013
1383175295
- Output for 5.6.13
- 31-10-2013
1383189941
- Output for 5.6.12
- 31-10-2013
1383238652
- Output for 5.6.11
- 31-10-2013
1383177342
- Output for 5.6.10
- 31-10-2013
1383184028
- Output for 5.6.9
- 31-10-2013
1383201951
- Output for 5.6.8
- 31-10-2013
1383230368
- Output for 5.6.7
- 31-10-2013
1383202303
- Output for 5.5.35
- 31-10-2013
1383195443
- Output for 5.5.34
- 31-10-2013
1383250623
- Output for 5.5.33
- 31-10-2013
1383235573
- Output for 5.5.32
- 31-10-2013
1383257313
- Output for 5.5.31
- 31-10-2013
1383223679
- Output for 5.5.30
- 31-10-2013
1383259953
- Output for 5.5.29
- 31-10-2013
1383240644
- Output for 5.5.28
- 31-10-2013
1383249715
- Output for 5.5.27
- 31-10-2013
1383258515
- Output for 5.5.26
- 31-10-2013
1383192803
- Output for 5.5.25
- 31-10-2013
1383214562
- Output for 5.5.24
- 31-10-2013
1383239450
- Output for 5.4.38 - 5.4.45
- 31-10-2013
1383214604
- Output for 5.4.30 - 5.4.37
- 31-10-2013
1383214605
- Output for 5.4.26 - 5.4.29
- 31-10-2013
1383214606
- Output for 5.4.20 - 5.4.25
- 31-10-2013
1383214607
- Output for 5.4.14 - 5.4.19
- 31-10-2013
1383214608
- Output for 5.4.11 - 5.4.13
- 31-10-2013
1383214609
- Output for 5.4.7 - 5.4.10
- 31-10-2013
1383214610
- Output for 5.4.2 - 5.4.6
- 31-10-2013
1383214611
- Output for 5.3.28 - 5.3.29, 5.4.0 - 5.4.1
- 31-10-2013
1383214612
- Output for 5.3.25 - 5.3.27
- 31-10-2013
1383214613
- Output for 5.3.21 - 5.3.24
- 31-10-2013
1383214614
- Output for 5.3.18 - 5.3.20
- 31-10-2013
1383214615
- Output for 5.3.14 - 5.3.17
- 31-10-2013
1383214616
- Output for 5.3.9 - 5.3.13
- 31-10-2013
1383214617
- Output for 5.3.5 - 5.3.8
- 31-10-2013
1383214618
- Output for 5.3.2 - 5.3.4
- 31-10-2013
1383214619
- Output for 5.3.0 - 5.3.1
- 31-10-2013
1383214620
- Output for 5.2.10 - 5.2.17
- Fatal error: Call to undefined method DateTime::createFromFormat() in /in/GpSaB on line 5
Process exited with code 255. - Output for 5.2.0 - 5.2.9
- Fatal error: Call to undefined method DateTime::createfromformat() in /in/GpSaB on line 5
Process exited with code 255. - Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
- Fatal error: Class 'datetime' not found in /in/GpSaB on line 5
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
- Fatal error: Undefined class name 'datetime' in /in/GpSaB on line 5
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Undefined class name 'datetime' in /in/GpSaB on line 5
preferences:
257.06 ms | 401 KiB | 328 Q