Example #1
0
 public function testMondayAsDate()
 {
     $monday = Calendar::monday();
     $this->assertEquals($monday->toIsoString(), $monday->asDate()->toIsoString());
 }
Example #2
0
 function monday(\DateTimeInterface $date = null)
 {
     return \Staffim\DateTime\Calendar::monday($date);
 }