Пример #1
0
 public function withZone(ZoneId $zone)
 {
     if ($zone->equals($this->baseClock->getZone())) {
         // intentional NPE
         return $this;
     }
     return new TickClock($this->baseClock->withZone($zone), $this->tickNanos);
 }
Пример #2
0
 public function withZone(ZoneId $zone)
 {
     if ($zone->equals($this->baseClock->getZone())) {
         // intentional NPE
         return $this;
     }
     return new OffsetClock($this->baseClock->withZone($zone), $this->offset);
 }