@ 2015-10-28T13:59:08Z <?php
$time = new DateTime();
Locale::setDefault('en_GB');
echo IntlDateFormatter::formatObject($time)."\n";
echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::NONE, IntlDateFormatter::MEDIUM])."\n";
echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE])."\n";
Locale::setDefault('no_NO');
echo IntlDateFormatter::formatObject($time)."\n";
echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::NONE, IntlDateFormatter::MEDIUM])."\n";
echo IntlDateFormatter::formatObject($time, [IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE])."\n";
Locale::setDefault('en_GB');
$formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE);
echo $formatter->format($time)."\n";
Locale::setDefault('no_NO');
$formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE);
echo $formatter->format($time)."\n";
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.1.0 - 7.1.10 , 7.2.0 , 8.1.28 , 8.2.18 , 8.3.5 - 8.3.7 28 Oct 2015, 14:59:08
14:59:08
28 Oct 2015
28. okt. 2015, 14:59:08
14:59:08
28. okt. 2015
28 Oct 2015
28. okt. 2015
Output for 7.1.20 , 7.2.6 - 7.2.33 , 7.3.16 - 7.3.31 , 7.4.0 - 7.4.32 , 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 , 8.1.0 - 8.1.27 , 8.2.0 - 8.2.17 , 8.3.0 - 8.3.4 28 Oct 2015, 14:59:08
14:59:08
28 Oct 2015
28. okt. 2015, 14.59.08
14.59.08
28. okt. 2015
28 Oct 2015
28. okt. 2015
Output for 8.0.13 Fatal error: Uncaught Error: Class "Locale" not found in /in/hoRks:4
Stack trace:
#0 {main}
thrown in /in/hoRks on line 4
Process exited with code 255 . Output for 7.0.5 , 7.3.32 - 7.3.33 , 7.4.33 Fatal error: Uncaught Error: Class 'Locale' not found in /in/hoRks:4
Stack trace:
#0 {main}
thrown in /in/hoRks on line 4
Process exited with code 255 . Output for 7.0.20 28 Oct 2015, 14:59:08
14:59:08
20151028 02:59 pm
28. okt. 2015, 14:59:08
14:59:08
20151028 02:59 p.m.
28 Oct 2015
28. okt. 2015
Output for 7.0.6 3 May 2016, 17:56:56
17:56:56
20160503 05:56 pm
3. mai 2016, 17.56.56
17.56.56
20160503 05:56 p.m.
3 May 2016
3. mai 2016
Output for 7.0.4 10 Mar 2016, 18:09:41
18:09:41
20160310 06:09 pm
10. mar. 2016, 18.09.41
18.09.41
20160310 06:09 p.m.
10 Mar 2016
10. mar. 2016
Output for 7.0.3 18 Mar 2016, 18:57:50
18:57:50
20160318 06:57 pm
18. mar. 2016, 18.57.50
18.57.50
20160318 06:57 p.m.
18 Mar 2016
18. mar. 2016
Output for 7.0.2 23 Mar 2016, 01:21:50
01:21:50
20160323 01:21 am
23. mar. 2016, 01.21.50
01.21.50
20160323 01:21 a.m.
23 Mar 2016
23. mar. 2016
Output for 7.0.1 24 Mar 2016, 05:05:46
05:05:46
20160324 05:05 am
24. mar. 2016, 05.05.46
05.05.46
20160324 05:05 a.m.
24 Mar 2016
24. mar. 2016
Output for 7.0.0 27 Mar 2016, 07:02:16
07:02:16
20160327 07:02 am
27. mar. 2016, 07.02.16
07.02.16
20160327 07:02 a.m.
27 Mar 2016
27. mar. 2016
Output for 5.6.28 28 Oct 2015, 14:59:08
14:59:08
20151028 02:59 pm
28. okt. 2015, 14.59.08
14.59.08
20151028 02:59 p.m.
28 Oct 2015
28. okt. 2015
Output for 5.6.21 2 May 2016, 13:07:50
13:07:50
20160502 01:07 pm
2. mai 2016, 13.07.50
13.07.50
20160502 01:07 p.m.
2 May 2016
2. mai 2016
Output for 5.5.29 - 5.5.30 , 5.5.34 , 5.6.13 - 5.6.15 , 5.6.20 Fatal error: Class 'Locale' not found in /in/hoRks on line 4
Process exited with code 255 . Output for 5.6.19 8 Mar 2016, 02:19:49
02:19:49
20160308 02:19 am
8. mar. 2016, 02.19.49
02.19.49
20160308 02:19 a.m.
8 Mar 2016
8. mar. 2016
Output for 5.6.18 15 Mar 2016, 11:01:11
11:01:11
20160315 11:01 am
15. mar. 2016, 11.01.11
11.01.11
20160315 11:01 a.m.
15 Mar 2016
15. mar. 2016
Output for 5.6.17 19 Mar 2016, 22:42:25
22:42:25
20160319 10:42 pm
19. mar. 2016, 22.42.25
22.42.25
20160319 10:42 p.m.
19 Mar 2016
19. mar. 2016
Output for 5.6.16 28 Mar 2016, 07:49:32
07:49:32
20160328 07:49 am
28. mar. 2016, 07.49.32
07.49.32
20160328 07:49 a.m.
28 Mar 2016
28. mar. 2016
Output for 5.6.12 20 Apr 2016, 05:23:07
05:23:07
20160420 05:23 am
20. apr. 2016, 05.23.07
05.23.07
20160420 05:23 a.m.
20 Apr 2016
20. apr. 2016
Output for 5.6.11 24 Apr 2016, 11:38:56
11:38:56
20160424 11:38 am
24. apr. 2016, 11.38.56
11.38.56
20160424 11:38 a.m.
24 Apr 2016
24. apr. 2016
Output for 5.6.10 25 Apr 2016, 13:48:25
13:48:25
20160425 01:48 pm
25. apr. 2016, 13.48.25
13.48.25
20160425 01:48 p.m.
25 Apr 2016
25. apr. 2016
Output for 5.6.9 27 Apr 2016, 18:57:54
18:57:54
20160427 06:57 pm
27. apr. 2016, 18.57.54
18.57.54
20160427 06:57 p.m.
27 Apr 2016
27. apr. 2016
Output for 5.6.8 30 Apr 2016, 03:51:22
03:51:22
20160430 03:51 am
30. apr. 2016, 03.51.22
03.51.22
20160430 03:51 a.m.
30 Apr 2016
30. apr. 2016
Output for 5.5.35 22 May 2016, 19:32:45
19:32:45
20160522 07:32 pm
22. mai 2016, 19.32.45
19.32.45
20160522 07:32 p.m.
22 May 2016
22. mai 2016
Output for 5.5.33 9 Mar 2016, 04:57:01
04:57:01
20160309 04:57 am
9. mar. 2016, 04.57.01
04.57.01
20160309 04:57 a.m.
9 Mar 2016
9. mar. 2016
Output for 5.5.32 17 Mar 2016, 14:39:51
14:39:51
20160317 02:39 pm
17. mar. 2016, 14.39.51
14.39.51
20160317 02:39 p.m.
17 Mar 2016
17. mar. 2016
Output for 5.5.31 21 Mar 2016, 01:41:11
01:41:11
20160321 01:41 am
21. mar. 2016, 01.41.11
01.41.11
20160321 01:41 a.m.
21 Mar 2016
21. mar. 2016
Output for 5.5.28 21 Apr 2016, 08:36:07
08:36:07
20160421 08:36 am
21. apr. 2016, 08.36.07
08.36.07
20160421 08:36 a.m.
21 Apr 2016
21. apr. 2016
Output for 5.5.27 22 Apr 2016, 10:25:03
10:25:03
20160422 10:25 am
22. apr. 2016, 10.25.03
10.25.03
20160422 10:25 a.m.
22 Apr 2016
22. apr. 2016
Output for 5.5.26 26 Apr 2016, 16:31:25
16:31:25
20160426 04:31 pm
26. apr. 2016, 16.31.25
16.31.25
20160426 04:31 p.m.
26 Apr 2016
26. apr. 2016
Output for 5.5.25 28 Apr 2016, 23:22:26
23:22:26
20160428 11:22 pm
28. apr. 2016, 23.22.26
23.22.26
20160428 11:22 p.m.
28 Apr 2016
28. apr. 2016
Output for 5.5.24 24 May 2016, 05:57:11
05:57:11
20160524 05:57 am
24. mai 2016, 05.57.11
05.57.11
20160524 05:57 a.m.
24 May 2016
24. mai 2016
Output for 5.4.0 - 5.4.45 Fatal error: Call to undefined method IntlDateFormatter::formatObject() in /in/hoRks on line 5
Process exited with code 255 . preferences:dark mode live preview
208.81 ms | 401 KiB | 229 Q