Lines Matching refs:dt

92   dt.year = newtime->tm_year + 1900;  in ResetDateTime()
93 dt.month = newtime->tm_mon + 1; in ResetDateTime()
94 dt.day = newtime->tm_mday; in ResetDateTime()
95 dt.hour = newtime->tm_hour; in ResetDateTime()
96 dt.minute = newtime->tm_min; in ResetDateTime()
97 dt.second = newtime->tm_sec; in ResetDateTime()
104 FXSYS_memcpy(&dt, &datetime.dt, sizeof(FX_DATETIME)); in operator =()
111 dt.year = (int16_t)st.wYear; in operator =()
112 dt.month = (uint8_t)st.wMonth; in operator =()
113 dt.day = (uint8_t)st.wDay; in operator =()
114 dt.hour = (uint8_t)st.wHour; in operator =()
115 dt.minute = (uint8_t)st.wMinute; in operator =()
116 dt.second = (uint8_t)st.wSecond; in operator =()
123 return (FXSYS_memcmp(&dt, &datetime.dt, sizeof(FX_DATETIME)) == 0); in operator ==()
127 return (FXSYS_memcmp(&dt, &datetime.dt, sizeof(FX_DATETIME)) != 0); in operator !=()
134 (((int)dt1.dt.year) << 16) | (((int)dt1.dt.month) << 8) | (int)dt1.dt.day; in operator >()
135 int d2 = (((int)dt1.dt.hour) << 16) | (((int)dt1.dt.minute) << 8) | in operator >()
136 (int)dt1.dt.second; in operator >()
138 (((int)dt2.dt.year) << 16) | (((int)dt2.dt.month) << 8) | (int)dt2.dt.day; in operator >()
139 int d4 = (((int)dt2.dt.hour) << 16) | (((int)dt2.dt.minute) << 8) | in operator >()
140 (int)dt2.dt.second; in operator >()
153 (((int)dt1.dt.year) << 16) | (((int)dt1.dt.month) << 8) | (int)dt1.dt.day; in operator >=()
154 int d2 = (((int)dt1.dt.hour) << 16) | (((int)dt1.dt.minute) << 8) | in operator >=()
155 (int)dt1.dt.second; in operator >=()
157 (((int)dt2.dt.year) << 16) | (((int)dt2.dt.month) << 8) | (int)dt2.dt.day; in operator >=()
158 int d4 = (((int)dt2.dt.hour) << 16) | (((int)dt2.dt.minute) << 8) | in operator >=()
159 (int)dt2.dt.second; in operator >=()
172 (((int)dt1.dt.year) << 16) | (((int)dt1.dt.month) << 8) | (int)dt1.dt.day; in operator <()
173 int d2 = (((int)dt1.dt.hour) << 16) | (((int)dt1.dt.minute) << 8) | in operator <()
174 (int)dt1.dt.second; in operator <()
176 (((int)dt2.dt.year) << 16) | (((int)dt2.dt.month) << 8) | (int)dt2.dt.day; in operator <()
177 int d4 = (((int)dt2.dt.hour) << 16) | (((int)dt2.dt.minute) << 8) | in operator <()
178 (int)dt2.dt.second; in operator <()
191 (((int)dt1.dt.year) << 16) | (((int)dt1.dt.month) << 8) | (int)dt1.dt.day; in operator <=()
192 int d2 = (((int)dt1.dt.hour) << 16) | (((int)dt1.dt.minute) << 8) | in operator <=()
193 (int)dt1.dt.second; in operator <=()
195 (((int)dt2.dt.year) << 16) | (((int)dt2.dt.month) << 8) | (int)dt2.dt.day; in operator <=()
196 int d4 = (((int)dt2.dt.hour) << 16) | (((int)dt2.dt.minute) << 8) | in operator <=()
197 (int)dt2.dt.second; in operator <=()
209 newtime.tm_year = dt.year - 1900; in operator time_t()
210 newtime.tm_mon = dt.month - 1; in operator time_t()
211 newtime.tm_mday = dt.day; in operator time_t()
212 newtime.tm_hour = dt.hour; in operator time_t()
213 newtime.tm_min = dt.minute; in operator time_t()
214 newtime.tm_sec = dt.second; in operator time_t()
242 dt.year = (int16_t)k; in FromPDFDateTimeString()
256 dt.month = (uint8_t)k; in FromPDFDateTimeString()
270 dt.day = (uint8_t)k; in FromPDFDateTimeString()
284 dt.hour = (uint8_t)k; in FromPDFDateTimeString()
298 dt.minute = (uint8_t)k; in FromPDFDateTimeString()
312 dt.second = (uint8_t)k; in FromPDFDateTimeString()
320 dt.tzHour = -1; in FromPDFDateTimeString()
322 dt.tzHour = 1; in FromPDFDateTimeString()
333 dt.tzHour *= (FX_CHAR)k; in FromPDFDateTimeString()
350 dt.tzMinute = (uint8_t)k; in FromPDFDateTimeString()
360 str1.Format("%04d-%02d-%02d %02d:%02d:%02d ", dt.year, dt.month, dt.day, in ToCommonDateTimeString()
361 dt.hour, dt.minute, dt.second); in ToCommonDateTimeString()
362 if (dt.tzHour < 0) in ToCommonDateTimeString()
367 str2.Format("%02d:%02d", abs(dt.tzHour), dt.tzMinute); in ToCommonDateTimeString()
376 dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second); in ToPDFDateTimeString()
378 if (dt.tzHour < 0) in ToPDFDateTimeString()
383 FXSYS_snprintf(tempStr, sizeof(tempStr) - 1, "%02d'%02d'", abs(dt.tzHour), in ToPDFDateTimeString()
384 dt.tzMinute); in ToPDFDateTimeString()
390 CPDFSDK_DateTime dt = *this; in ToSystemTime() local
391 time_t t = (time_t)dt; in ToSystemTime()
406 CPDFSDK_DateTime dt = *this; in ToGMT() local
407 dt.AddSeconds(-_gAfxGetTimeZoneInSeconds(dt.dt.tzHour, dt.dt.tzMinute)); in ToGMT()
408 dt.dt.tzHour = 0; in ToGMT()
409 dt.dt.tzMinute = 0; in ToGMT()
410 return dt; in ToGMT()
417 int16_t y = dt.year, yy; in AddDays()
418 uint8_t m = dt.month; in AddDays()
419 uint8_t d = dt.day; in AddDays()
473 dt.year = y; in AddDays()
474 dt.month = m; in AddDays()
475 dt.day = d; in AddDays()
487 n = dt.hour * 3600 + dt.minute * 60 + dt.second + seconds; in AddSeconds()
495 dt.hour = (uint8_t)(n / 3600); in AddSeconds()
496 dt.hour %= 24; in AddSeconds()
498 dt.minute = (uint8_t)(n / 60); in AddSeconds()
499 dt.second = (uint8_t)(n % 60); in AddSeconds()
626 CPDFSDK_DateTime dt(st); in SetModifiedDate() local
627 CFX_ByteString str = dt.ToPDFDateTimeString(); in SetModifiedDate()
639 CPDFSDK_DateTime dt(str); in GetModifiedDate() local
640 dt.ToSystemTime(systime); in GetModifiedDate()