getOffset() 공개 메소드

Get the offset from current timezone to the UTC timezone in seconds.
public getOffset ( ) : integer
리턴 integer The offset from current timezone to UTC in seconds.
예제 #1
0
 public function testGetOffset()
 {
     $ny = new DateTimeObject("now", 'America/New_York');
     if ($ny->getOffset() != -18000 && $ny->getOffset() != -14400) {
         // based on daylight saving time
         $this->assertFalse(true);
     }
 }