Example #1
0
 /**
  * A string representation of this instant using ISO-8601 representation.
  * <p>
  * The format used is the same as {@link DateTimeFormatter#ISO_INSTANT}.
  *
  * @return string an ISO-8601 representation of this instant, not null
  */
 public function __toString()
 {
     return DateTimeFormatter::ISO_INSTANT()->format($this);
 }
 public function test_isoInstant_basics()
 {
     $this->assertEquals(DateTimeFormatter::ISO_INSTANT()->getChronology(), null);
     $this->assertEquals(DateTimeFormatter::ISO_INSTANT()->getZone(), null);
     $this->assertEquals(DateTimeFormatter::ISO_INSTANT()->getResolverStyle(), ResolverStyle::STRICT());
 }