Lines Matching refs:format
8 $date2 = DateTime::createFromFormat("D H i s", $date->format("D"). ' 0 00 00');
9 echo $date->format("r"), "\n";
10 echo $date2->format("r"), "\n";
11 var_dump($date->format("D") == $date2->format("D"));
16 echo $datePre->format("r"), "\n";
17 echo $datePost->format("r"), "\n";
18 var_dump($datePre->format("Y-m-d") == $datePost->format("Y-m-d"));
24 echo $date1->format('r'), "\n";
25 echo $date2->format('r'), "\n";
26 var_dump($date1->format('D') == $date2->format('D'));
31 echo $date1->format('r'), "\n";
32 echo $date2->format('r'), "\n";
33 var_dump($date1->format('Y-m-d') == $date2->format('Y-m-d'));
38 echo $date1->format('r'), "\n";
39 echo $date2->format('r'), "\n";
40 var_dump($date1->format('Y-m-d') == $date2->format('Y-m-d'));