<?php
$date = \DateTime::createFromFormat('Y-m', '2010-05');
var_dump($date,true);
- Output for 5.6.28, 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-30 17:04:51.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 7.3.32 - 7.3.33, 8.0.13
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-30 16:04:51.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "UTC"
}
bool(true)
- Output for 7.0.6
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-03 18:03:20.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 7.0.5
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-03 06:30:03.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 7.0.4
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-10 18:15:19.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 7.0.3
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-18 19:18:32.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 7.0.2
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-23 01:28:08.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 7.0.1
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-24 05:11:17.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 7.0.0
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-27 07:07:58.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.21
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-02 13:13:16.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.20
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-10 05:29:15.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.19
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-08 02:25:44.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.18
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-15 11:08:04.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.17
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-19 22:48:23.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.16
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-28 07:55:01.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.15
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-29 08:45:50.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.14
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-02 10:38:36.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.13
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-15 14:59:47.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.12
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-20 05:28:40.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.11
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-24 11:44:42.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.10
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-25 13:54:01.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.9
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-27 19:03:49.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.6.8
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-30 03:56:58.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.35
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-22 19:39:21.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.34
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-11 07:41:18.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.33
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-09 05:04:01.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.32
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-17 14:45:47.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.31
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-21 01:47:38.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.30
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-01 10:39:19.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.29
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-17 05:24:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.28
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-21 08:41:59.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.27
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-22 10:30:26.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.26
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-26 16:37:05.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.25
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-28 23:28:07.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.5.24
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-24 06:02:50.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.4.45
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-30 17:05:01.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.4.38 - 5.4.44
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-30 17:05:02.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.4.31 - 5.4.37
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-30 17:05:03.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.4.30
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2010-05-30 17:05:04.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.4.23 - 5.4.29
- object(DateTime)#1 (3) {
["date"]=>
string(19) "2010-05-30 17:05:04"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.4.13 - 5.4.22
- object(DateTime)#1 (3) {
["date"]=>
string(19) "2010-05-30 17:05:05"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.4.7 - 5.4.12
- object(DateTime)#1 (3) {
["date"]=>
string(19) "2010-05-30 17:05:06"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
- Output for 5.4.0 - 5.4.6
- object(DateTime)#1 (3) {
["date"]=>
string(19) "2010-05-30 17:05:07"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
bool(true)
preferences:
240 ms | 402 KiB | 226 Q