equal
deleted
inserted
replaced
35 self::__construct( $time ); |
35 self::__construct( $time ); |
36 } |
36 } |
37 |
37 |
38 function parseTimestamp($timestamp) |
38 function parseTimestamp($timestamp) |
39 { |
39 { |
40 $this->year = date('Y', $timestamp); |
40 $this->year = gmdate('Y', $timestamp); |
41 $this->month = date('m', $timestamp); |
41 $this->month = gmdate('m', $timestamp); |
42 $this->day = date('d', $timestamp); |
42 $this->day = gmdate('d', $timestamp); |
43 $this->hour = date('H', $timestamp); |
43 $this->hour = gmdate('H', $timestamp); |
44 $this->minute = date('i', $timestamp); |
44 $this->minute = gmdate('i', $timestamp); |
45 $this->second = date('s', $timestamp); |
45 $this->second = gmdate('s', $timestamp); |
46 $this->timezone = ''; |
46 $this->timezone = ''; |
47 } |
47 } |
48 |
48 |
49 function parseIso($iso) |
49 function parseIso($iso) |
50 { |
50 { |