13 var_dump(new Timestamp);
15 echo "caught empty\n";
17 $full = "2021-12-07T14:08:51+00:00";
18 var_dump($t=new Timestamp(Timestamp\Precision::Day, datetime:$full),(string)$t);
19 var_dump($t=new Timestamp(Timestamp\Precision::Day->value, datetime:$full),(string)$t);
20 var_dump($t=new Timestamp(Timestamp\Precision::Min, datetime:"2020-10-01"),(string)$t);
21 var_dump($t=new Timestamp(Timestamp\Precision::Day, "!Y-m", "2000-10"),(string)$t);
27 object(ion\Timestamp)#%d (5) {
33 string(26) "2021-12-07 14:08:51.000000"
39 string(11) "2021-12-07T"
40 object(ion\Timestamp)#%d (5) {
46 string(26) "2021-12-07 14:08:51.000000"
52 string(11) "2021-12-07T"
53 object(ion\Timestamp)#%d (5) {
57 string(11) "Y-m-d\TH:iP"
59 string(26) "2020-10-01 00:00:00.000000"
65 string(22) "2020-10-01T00:00+02:00"
66 object(ion\Timestamp)#%d (5) {
72 string(26) "2000-10-01 00:00:00.000000"
78 string(11) "2000-10-01T"