Home | History | Annotate | Download | only in src

Lines Matching refs:DST

116     // the points were we transition to and from DST.
118 // The following shows that using DST for (t - LocalTZA - hour) produces
121 // Consider transition to DST at local time L1.
125 // Transitioning to DST moves local clock one hour forward L1 => L2, so
129 // Note that DST(U0 - hour) = 0, DST(U0) = 0, DST(U1) = 1.
130 // U0 = L0 - LocalTZA - DST(L0 - LocalTZA - hour),
131 // U1 = L1 - LocalTZA - DST(L1 - LocalTZA - hour),
132 // U1 = L2 - LocalTZA - DST(L2 - LocalTZA - hour).
134 // Consider transition from DST at local time L1.
138 // Transitioning from DST moves local clock one hour back L1 => L0, so
144 // Note that DST(U0) = 1, DST(U1) = 0, DST(U2) = 0.
145 // U0 = L0 - LocalTZA - DST(L0 - LocalTZA - hour) = L0 - LocalTZA - DST(U0).
146 // U2 = L1 - LocalTZA - DST(L1 - LocalTZA - hour) = L1 - LocalTZA - DST(U1).
220 // In Egypt in 2010 they decided to suspend DST during Ramadan. This
221 // led to a short interval where DST is in effect from September 10 to
230 struct DST {
241 // Sets the before_ and the after_ segments from the DST cache such that
248 // Finds the least recently used segment from the DST cache that is not
250 DST* LeastRecentlyUsedDST(DST* skip);
257 inline void ClearSegment(DST* segment);
259 bool InvalidSegment(DST* segment) {
266 DST dst_[kDSTSize];
268 DST* before_;
269 DST* after_;