Пример #1
0
 /**
  * @return string
  */
 public function __toString()
 {
     return (string) ZonedDateTime::ofInstant($this, TimeZone::utc());
 }
Пример #2
0
 public function testIsEqualTo()
 {
     $this->assertTrue(TimeZone::utc()->isEqualTo(TimeZoneOffset::ofTotalSeconds(0)));
     $this->assertFalse(TimeZone::utc()->isEqualTo(TimeZoneOffset::ofTotalSeconds(1)));
 }