コード例 #1
0
ファイル: TickClock.php プロジェクト: celest-time/prototype
 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
ファイル: OffsetClock.php プロジェクト: celest-time/prototype
 public function withZone(ZoneId $zone)
 {
     if ($zone->equals($this->baseClock->getZone())) {
         // intentional NPE
         return $this;
     }
     return new OffsetClock($this->baseClock->withZone($zone), $this->offset);
 }