| 69 | } |
| 70 | |
| 71 | TSimpleTM TSimpleTM::New(time_t t, i32 gmtoff, i8 isdst) { |
| 72 | time_t tt = t + gmtoff + isdst * 3600; |
| 73 | struct tm tmSys; |
| 74 | Zero(tmSys); |
| 75 | GmTimeR(&tt, &tmSys); |
| 76 | tmSys.tm_isdst = isdst; |
| 77 | #ifndef _win_ |
| 78 | tmSys.tm_gmtoff = gmtoff; |
| 79 | #endif |
| 80 | |
| 81 | return New(tmSys); |
| 82 | } |
| 83 | |
| 84 | TSimpleTM TSimpleTM::NewLocal(time_t t) { |
| 85 | TTimeData d(t); |
nothing calls this directly
no test coverage detected