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).
216 // In Egypt in 2010 they decided to suspend DST during Ramadan. This
217 // led to a short interval where DST is in effect from September 10 to
226 struct DST {
237 // Sets the before_ and the after_ segments from the DST cache such that
244 // Finds the least recently used segment from the DST cache that is not
246 DST* LeastRecentlyUsedDST(DST* skip);
253 inline void ClearSegment(DST* segment);
255 bool InvalidSegment(DST* segment) {
262 DST dst_[kDSTSize];
264 DST* before_;
265 DST* after_;