Home
last modified time | relevance | path

Searched refs:hour (Results 1 - 25 of 257) sorted by relevance

1234567891011

/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
H A Dcivil_time_test.cc51 static_assert(chh.hour() == 17, "Normal.hour"); in TEST()
68 static_assert(chh.hour() == 0, "Conversion.hour"); in TEST()
82 static_assert(cs.hour() == 17, "Normalized.hour"); in TEST()
92 static_assert(cs.hour() == 17, "SecondOverflow.hour"); in TEST()
102 static_assert(cs.hour() == 17, "SecondUnderflow.hour"); in TEST()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DDayPeriodRules.java148 int hour = parseHour(hourStr); in addCutoff()
149 cutoffs[hour] |= 1 << type.ordinal(); in addCutoff()
169 for (int hour = startHour + 1;; ++hour) { in setDayPeriodForHoursFromCutoffs()
170 if (hour == startHour) { in setDayPeriodForHoursFromCutoffs()
175 if (hour == 25) { hour = 0; } in setDayPeriodForHoursFromCutoffs()
176 if ((cutoffs[hour] & (1 << CutoffType.BEFORE.ordinal())) > 0) { in setDayPeriodForHoursFromCutoffs()
177 rule.add(startHour, hour, period); in setDayPeriodForHoursFromCutoffs()
196 int hour in parseHour()
356 getDayPeriodForHour(int hour) getDayPeriodForHour() argument
[all...]
H A DZoneMeta.java580 // Maximum value of valid custom time zone hour/min
621 // fields[1] - hour / 5-bit in getCustomTimeZone()
652 * hour is set to fields[1], minute is set to fields[2] and second is
663 int hour = 0; in parseCustomID()
684 hour = n.intValue(); in parseCustomID()
732 // already set to hour in parseCustomID()
736 min = hour % 100; in parseCustomID()
737 hour /= 100; in parseCustomID()
741 sec = hour % 100; in parseCustomID()
742 min = (hour/10 in parseCustomID()
802 formatCustomID(int hour, int min, int sec, boolean negative) formatCustomID() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DDayPeriodRules.java155 int hour = parseHour(hourStr); in addCutoff()
156 cutoffs[hour] |= 1 << type.ordinal(); in addCutoff()
176 for (int hour = startHour + 1;; ++hour) { in setDayPeriodForHoursFromCutoffs()
177 if (hour == startHour) { in setDayPeriodForHoursFromCutoffs()
182 if (hour == 25) { hour = 0; } in setDayPeriodForHoursFromCutoffs()
183 if ((cutoffs[hour] & (1 << CutoffType.BEFORE.ordinal())) > 0) { in setDayPeriodForHoursFromCutoffs()
184 rule.add(startHour, hour, period); in setDayPeriodForHoursFromCutoffs()
203 int hour in parseHour()
363 getDayPeriodForHour(int hour) getDayPeriodForHour() argument
[all...]
H A DZoneMeta.java581 // Maximum value of valid custom time zone hour/min
622 // fields[1] - hour / 5-bit in getCustomTimeZone()
653 * hour is set to fields[1], minute is set to fields[2] and second is
664 int hour = 0; in parseCustomID()
685 hour = n.intValue(); in parseCustomID()
733 // already set to hour in parseCustomID()
737 min = hour % 100; in parseCustomID()
738 hour /= 100; in parseCustomID()
742 sec = hour % 100; in parseCustomID()
743 min = (hour/10 in parseCustomID()
803 formatCustomID(int hour, int min, int sec, boolean negative) formatCustomID() argument
[all...]
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_date_time.cpp66 uint32 hour, in dng_date_time()
73 , fHour (hour) in dng_date_time()
227 void dng_date_time_info::SetTime (uint32 hour, in SetTime() argument
234 fDateTime.fHour = hour; in SetTime()
283 unsigned hour = 0; in Decode_ISO_8601() local
289 &hour, in Decode_ISO_8601()
296 SetTime ((uint32) hour, in Decode_ISO_8601()
553 unsigned hour = 0; in Decode_IPTC_Time() local
561 &hour, in Decode_IPTC_Time()
577 SetTime ((uint32) hour, in Decode_IPTC_Time()
63 dng_date_time(uint32 year, uint32 month, uint32 day, uint32 hour, uint32 minute, uint32 second) dng_date_time() argument
594 unsigned hour = 0; Decode_IPTC_Time() local
616 unsigned hour = 0; Decode_IPTC_Time() local
[all...]
/third_party/icu/icu4c/source/i18n/
H A Ddayperiodrules.cpp185 int32_t hour = parseHour(hour_str, errorCode); in addCutoff() local
188 cutoffs[hour] |= 1 << type; in addCutoff()
211 for (int32_t hour = startHour + 1;; ++hour) { in setDayPeriodForHoursFromCutoffs()
212 if (hour == startHour) { in setDayPeriodForHoursFromCutoffs()
217 if (hour == 25) { hour = 0; } in setDayPeriodForHoursFromCutoffs()
218 if (cutoffs[hour] & (1 << CUTOFF_TYPE_BEFORE)) { in setDayPeriodForHoursFromCutoffs()
219 rule.add(startHour, hour, period); in setDayPeriodForHoursFromCutoffs()
242 // Gets the numerical value of the hour fro
260 int32_t hour = time[0] - 0x30; parseHour() local
[all...]
H A Dwintzimpl.cpp66 int32_t hour, min, sec, mil; in getSystemTimeInformation() local
76 hour = mil/3600000; in getSystemTimeInformation()
83 standardDate.wHour = static_cast<WORD>(hour); in getSystemTimeInformation()
97 hour = mil/3600000; in getSystemTimeInformation()
104 daylightDate.wHour = static_cast<WORD>(hour); in getSystemTimeInformation()
/third_party/node/deps/icu-small/source/i18n/
H A Ddayperiodrules.cpp187 int32_t hour = parseHour(hour_str, errorCode); in addCutoff() local
190 cutoffs[hour] |= 1 << type; in addCutoff()
213 for (int32_t hour = startHour + 1;; ++hour) { in setDayPeriodForHoursFromCutoffs()
214 if (hour == startHour) { in setDayPeriodForHoursFromCutoffs()
219 if (hour == 25) { hour = 0; } in setDayPeriodForHoursFromCutoffs()
220 if (cutoffs[hour] & (1 << CUTOFF_TYPE_BEFORE)) { in setDayPeriodForHoursFromCutoffs()
221 rule.add(startHour, hour, period); in setDayPeriodForHoursFromCutoffs()
244 // Gets the numerical value of the hour fro
262 int32_t hour = time[0] - 0x30; parseHour() local
[all...]
H A Dwintzimpl.cpp66 int32_t hour, min, sec, mil; in getSystemTimeInformation() local
76 hour = mil/3600000; in getSystemTimeInformation()
83 standardDate.wHour = static_cast<WORD>(hour); in getSystemTimeInformation()
97 hour = mil/3600000; in getSystemTimeInformation()
104 daylightDate.wHour = static_cast<WORD>(hour); in getSystemTimeInformation()
/third_party/skia/third_party/externals/icu/source/i18n/
H A Ddayperiodrules.cpp185 int32_t hour = parseHour(hour_str, errorCode); in addCutoff() local
188 cutoffs[hour] |= 1 << type; in addCutoff()
211 for (int32_t hour = startHour + 1;; ++hour) { in setDayPeriodForHoursFromCutoffs()
212 if (hour == startHour) { in setDayPeriodForHoursFromCutoffs()
217 if (hour == 25) { hour = 0; } in setDayPeriodForHoursFromCutoffs()
218 if (cutoffs[hour] & (1 << CUTOFF_TYPE_BEFORE)) { in setDayPeriodForHoursFromCutoffs()
219 rule.add(startHour, hour, period); in setDayPeriodForHoursFromCutoffs()
242 // Gets the numerical value of the hour fro
260 int32_t hour = time[0] - 0x30; parseHour() local
[all...]
H A Dwintzimpl.cpp66 int32_t hour, min, sec, mil; in getSystemTimeInformation() local
76 hour = mil/3600000; in getSystemTimeInformation()
83 standardDate.wHour = static_cast<WORD>(hour); in getSystemTimeInformation()
97 hour = mil/3600000; in getSystemTimeInformation()
104 daylightDate.wHour = static_cast<WORD>(hour); in getSystemTimeInformation()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
H A Dcivil_time_test.cc206 absl::CivilHour hour = day; in TEST() local
207 absl::CivilMinute minute = hour; in TEST()
216 second = hour; in TEST()
217 EXPECT_EQ(second, hour); in TEST()
227 minute = hour; in TEST()
228 EXPECT_EQ(minute, hour); in TEST()
230 hour = year; in TEST()
231 EXPECT_EQ(hour, year); in TEST()
232 hour = month; in TEST()
233 EXPECT_EQ(hour, mont in TEST()
[all...]
/third_party/protobuf/src/google/protobuf/stubs/
H A Dtime.cc77 time.hour < 0 || time.hour > 23 || in ValidateDateTime()
125 result += kSecondsPerHour * time.hour + in SecondsSinceCommonEra()
195 int hour; in ParseTimezoneOffset() local
196 if ((data = ParseInt(data, 2, 0, 23, &hour)) == nullptr) { in ParseTimezoneOffset()
206 *offset = (hour * 60 + minute) * 60; in ParseTimezoneOffset()
243 int hour = seconds / kSecondsPerHour; in SecondsToDateTime() local
250 time->hour = hour; in SecondsToDateTime()
278 time.hour, tim in FormatTime()
[all...]
H A Dtime_test.cc48 time.hour = time.minute = time.second = 0; in CreateTimestamp()
65 EXPECT_EQ(0, time.hour); in TEST()
76 EXPECT_EQ(23, time.hour); in TEST()
86 start.hour = 0; in TEST()
92 end.hour = 23; in TEST()
155 time.hour = 0; in TEST()
210 start.hour = 0; in TEST()
216 end.hour = 23; in TEST()
/third_party/node/deps/v8/src/date/
H A Ddateparser.cc73 int& hour = comp_[0]; in Write() local
79 if (!IsHour12(hour)) return false; in Write()
80 hour %= 12; in Write()
81 hour += hour_offset_; in Write()
84 if (!IsHour(hour) || !IsMinute(minute) || !IsSecond(second) || in Write()
86 // A 24th hour is allowed if minutes, seconds, and milliseconds are 0 in Write()
87 if (hour != 24 || minute != 0 || second != 0 || millisecond != 0) { in Write()
92 output[HOUR] = hour; in Write()
H A Ddate.cc201 int* weekday, int* hour, int* min, int* sec, in BreakDownTime()
207 *hour = time_in_day_ms / (60 * 60 * 1000); in BreakDownTime()
225 // The following shows that using DST for (t - LocalTZA - hour) produces in GetLocalOffsetFromOS()
234 // Let L0 = L1 - hour, L2 = L1 + hour, in GetLocalOffsetFromOS()
236 // U0 = U1 - hour. in GetLocalOffsetFromOS()
237 // Transitioning to DST moves local clock one hour forward L1 => L2, so in GetLocalOffsetFromOS()
240 // U1 = UTC time that corresponds to L2 = L2 - LocalTZA - hour. in GetLocalOffsetFromOS()
241 // Note that DST(U0 - hour) = 0, DST(U0) = 0, DST(U1) = 1. in GetLocalOffsetFromOS()
242 // U0 = L0 - LocalTZA - DST(L0 - LocalTZA - hour), in GetLocalOffsetFromOS()
200 BreakDownTime(int64_t time_ms, int* year, int* month, int* day, int* weekday, int* hour, int* min, int* sec, int* ms) BreakDownTime() argument
525 MakeTime(double hour, double min, double sec, double ms) MakeTime() argument
565 int year, month, day, weekday, hour, min, sec, ms; ToDateString() local
[all...]
/third_party/icu/icu4c/source/test/compat/
H A Dtzdate.c34 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime);
41 int year, month, day, hour, minute; in main() local
56 hour = atoi(argv[4]); in main()
63 systemtime = getSystemCurrentTime(systime, sysyear, month, day, hour, minute, useCurrentTime); in main()
111 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime) { in getSystemCurrentTime() argument
124 ts.tm_hour = hour; in getSystemCurrentTime()
/third_party/ffmpeg/libavformat/
H A Dwebvttenc.c32 int64_t sec, min, hour; in webvtt_write_time() local
37 hour = min / 60; in webvtt_write_time()
38 min -= 60 * hour; in webvtt_write_time()
40 if (hour > 0) in webvtt_write_time()
41 avio_printf(pb, "%02"PRId64":", hour); in webvtt_write_time()
/third_party/node/deps/npm/node_modules/tiny-relative-date/lib/
H A Dfactory.js22 var hour = minute * 60;
23 var day = hour * 24;
65 case !(delta < hour):
68 case Math.floor(delta / hour) !== 1:
72 return translate('hours', Math.floor(delta / hour));
/third_party/python/Include/
H A Ddatetime.h17 * 4 hour 1 byte, 0-23
27 /* # of bytes for hour, minute, second, and usecond. */
30 /* # of bytes for year, month, day, hour, minute, second, and usecond. */
226 #define PyDateTime_FromDateAndTime(year, month, day, hour, min, sec, usec) \
227 PyDateTimeAPI->DateTime_FromDateAndTime(year, month, day, hour, \
230 #define PyDateTime_FromDateAndTimeAndFold(year, month, day, hour, min, sec, usec, fold) \
231 PyDateTimeAPI->DateTime_FromDateAndTimeAndFold(year, month, day, hour, \
234 #define PyTime_FromTime(hour, minute, second, usecond) \
235 PyDateTimeAPI->Time_FromTime(hour, minute, second, usecond, \
238 #define PyTime_FromTimeAndFold(hour, minut
[all...]
/third_party/jerryscript/tests/jerry/
H A Ddate-setters.js18 var hour = 60 * min; variable
19 var day = 24 * hour; /* 86400000 */
84 /* 15.9.5.34 Date.prototype.setHours (hour [, min [, sec [, ms ] ] ] ) */
86 assert (d.setHours(1) == hour + d.getTimezoneOffset() * 60000);
89 assert (d.setHours(1, 1) == hour + min + d.getTimezoneOffset() * 60000);
93 assert (d.setHours(1, 1, 1) == hour + min + sec + d.getTimezoneOffset() * 60000);
98 assert (d.setHours(1, 1, 1, 1) == hour + min + sec + ms + d.getTimezoneOffset() * 60000);
104 /* 15.9.5.35 Date.prototype.setUTCHours (hour [, min [, sec [, ms ] ] ] ) */
106 assert (d.setUTCHours(1) == hour);
109 assert (d.setUTCHours(1, 1) == hour
[all...]
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
H A Dtzdst.c92 BufferInsert(standardString, bufLen, HOUR_HIGH_OFF, '0'); /* hour only one bit, padding 0 to high bit */ in TimezoneFormat()
138 INT32 hour; in settimezone() local
162 hour = StringToDigital(standardString[HOUR_HIGH_OFF], standardString[HOUR_LOW_OFF]); in settimezone()
167 ((standardString[OPERATE_OFF] == '-') && ((hour > 12) || ((hour == 12) && ((minute != 0) || (second != 0))))) || in settimezone()
168 ((standardString[OPERATE_OFF] == '+') && ((hour > 14) || ((hour == 14) && ((minute != 0) || (second != 0)))))) { in settimezone()
177 timezone = hour * 3600 + minute * 60 + second; in settimezone()
282 * 0~59 for minutes per hour
287 INT32 hour, mi in GetDaySecondsFromString() local
[all...]
/third_party/python/Lib/
H A D_strptime.py98 # The magic date (1999,3,17,hour,44,55,2,76,0) is not really that
102 for hour in (1, 22):
103 time_tuple = time.struct_time((1999,3,17,hour,44,55,2,76,0))
357 hour = minute = second = fraction = 0
397 hour = int(found_dict['H'])
399 hour = int(found_dict['I'])
403 # We're in AM so the hour is correct unless we're
405 # 12 midnight == 12 AM == hour 0
406 if hour == 12:
407 hour
[all...]
H A Ddatetime.py528 def _check_time_fields(hour, minute, second, microsecond, fold):
529 hour = _index(hour)
533 if not 0 <= hour <= 23:
534 raise ValueError('hour must be in 0..23', hour)
543 return hour, minute, second, microsecond, fold
1336 hour, minute, second, microsecond, tzinfo, fold
1340 def __new__(cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0):
1345 hour, minut
1381 def hour(self): global() member in time
1714 def hour(self): global() member in datetime
[all...]

Completed in 17 milliseconds

1234567891011