Home
last modified time | relevance | path

Searched refs:hour (Results 1 – 25 of 220) sorted by relevance

123456789

/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/alarm/src/main/js/default/pages/index/
H A Dindex.js87 let hour = timeArray[0]; variable
93 if (hour === '00') {
94 hour = onTheHour;
95 return hour + ':' + minute + ' 上午';
97 if (Number(hour) === onTheHour) {
98 return hour + ':' + minute + ' 下午';
100 if (Number(hour) > onTheHour) {
101 hour = Number(hour) - onTheHour;
102 return hour + ':' + minute + ' 下午';
104 return hour + ':' + minute + ' 上午';
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/alarm/src/main/js/default/pages/editAlarm/
H A Dedit_alarm.js85 let hour = hourTimeArray[0]; variable
90 if (Number(hour) !== onTheHour) {
91 hour = Number(hour) + onTheHour;
93 this.dataWrapper.time = hour + ':' + minute;
95 if (Number(hour) === onTheHour) {
96 hour = '00';
98 this.dataWrapper.time = hour + ':' + minute;
106 this.targetHour = e.hour;
/ohos5.0/docs/zh-cn/device-dev/guide/
H A Ddevice-clock-guide.md58 …style="transform : rotate({{ hour * 30 + minute / 2 }}deg);"></image> <!--设置时钟图片,(hour * 30)一小时旋转3…
108 hour: 0, //定义小时
118 this.hour = nowTime.getHours()
121 if (this.hour < 10) {
122 this.hour = '0' + this.hour
137 <text class="digit-clock"> {{ hour }}:{{ minute }}:{{ second }}</text>
165 <text class="digit-clock">{{ hour }}:{{ minute }}:{{ second }}</text>
216 hour: 0,
226 this.hour = nowTime.getHours()
229 if (this.hour < 10) {
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_time_component.cpp80 for (uint32_t hour = 0; hour <= 23; ++hour) { // time's hour from 0 to 23. in HandleHourColumnBuilding() local
81 if (hour == selectedTime_.GetHour()) { in HandleHourColumnBuilding()
84 hourColumn->AppendOption(GetHourFormatString(hour)); in HandleHourColumnBuilding()
96 for (uint32_t hour = 1; hour <= 12; ++hour) { // hour start from 1 to 12 in HandleHourColumnBuilding() local
97 if (hour == selectedHour) { in HandleHourColumnBuilding()
100 hourColumn->AppendOption(GetHourFormatString(hour)); in HandleHourColumnBuilding()
298 std::string PickerTimeComponent::GetHourFormatString(uint32_t hour) const in GetHourFormatString()
301 time.minute = hour; // minute range [0, 59], hour range [0, 23]; hour range is in minute range. in GetHourFormatString()
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/
H A Ddate_time_format_impl.cpp208 uint32_t hour = 0; in ParseZoneInfo() local
219 hour = temp; in ParseZoneInfo()
348 int32_t index = (hour > LENGTH_HOUR) ? (hour - LENGTH_HOUR) : hour; in ProcessTime()
353 int32_t hour = time.tm_hour; in ProcessTime() local
354 ZeroPadding(appendTo, count, MAX_COUNT, hour); in ProcessTime()
358 int32_t hour = time.tm_hour; in ProcessTime() local
359 int32_t index = (hour >= LENGTH_HOUR) ? (hour - LENGTH_HOUR) : hour; in ProcessTime()
364 int32_t hour = time.tm_hour + 1; in ProcessTime() local
365 ZeroPadding(appendTo, count, MAX_COUNT, hour); in ProcessTime()
528 int32_t hour = milliseconds / HOUR_IN_MILLIS; in FormatElapsedDuration() local
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-basic-components-timepicker.md3 The **TimePicker** component allows users to select a time (with the hour and minute) from the give…
19 Creates a time picker, which is in 24-hour format by default.
59 …to display time in 24-hour format. When the display time is in 12-hour format, the AM/PM zone does…
69 | value | boolean | Yes | Whether the display time is in 24-hour format.<br>Default value: **fals…
149hour**, **minute**, and **second** parameters is supported.<br>Default value:<br>**hour**: In the …
181 | value | [TimePickerResult](#timepickerresult)| Yes | Time in 24-hour format.|
185 Describes a time in 24-hour format.
193 | hour | number | No | No | Hour portion of the selected time.<br>Value range: [0…
199 This example implements a time picker that allows users to switch between 12-hour and 24-hour forma…
221 if(value.hour >= 0) {
[all …]
H A Dts-basic-components-textclock.md55hour (24-hour format)<b>**h**: hour (12-hour format)<br>**m**: minute<br>**s**: second<br>**SS**: …
61 …*format** are invalid, the display format follows the system's language and hour format settings.
65 …tside of widgets: 12-hour format: aa hh:mm:ss; 24-hour format: HH:mm:ss.<br>Default value in widge…
267 Sets whether to display a leading zero for the hour.
279hour. It only supports setting the **hour** parameter. When the parameter value is **{hour: "2-dig…
388 // Display the system time in 12-hour format for the UTC+8 time zone, accurate to seconds.
513 …ding zero for the hour field. By default, the hour field in the 24-hour format includes a leading …
521 Text("Remove the leading zero in 24-hour format: ")
526 .dateTimeOptions({hour: "numeric"})
529 Text("Add the leading zero in 12-hour format: ")
[all …]
H A Dts-methods-timepicker-dialog.md39hour format. The 12-hour format is used by default.<br>Default value: **false**<br>**NOTE**<br>Whe…
81 Button("TimePickerDialog 12-hour format")
91 if (value.hour != undefined && value.minute != undefined) {
92 this.selectTime.setHours(value.hour, value.minute)
116 Button("TimePickerDialog 24-hour format")
126 if (value.hour != undefined && value.minute != undefined) {
127 this.selectTime.setHours(value.hour, value.minute)
172 Button("TimePickerDialog 24-hour format")
189 this.selectTime.setHours(value.hour, value.minute)
232 Button("TimePickerDialog 12-hour format")
[all …]
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_view_struct_utils.cpp27 .hour = class_value.hour, in ArkWebDateTimeClassToStruct()
38 .hour = struct_value.hour, in ArkWebDateTimeStructToClass()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_core_struct_utils.cpp27 .hour = class_value.hour, in ArkWebDateTimeClassToStruct()
38 .hour = struct_value.hour, in ArkWebDateTimeStructToClass()
/ohos5.0/docs/en/design/ux-design/
H A Dmultimodal-picker.md12 - Use a picker for users to select the year, month, date, weekday, hour, or minute, or any of their…
16 …a time (in the format of hour:minute:second) on a mobile device. Users can set the time format, fo…
22 - Content area: The hour and minute are displayed. Time is displayed in 12-hour or 24-hour time for…
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_abstract_clock.cpp19 void UIAbstractClock::SetTime24Hour(uint8_t hour, uint8_t minute, uint8_t second) in SetTime24Hour() argument
21 currentHour_ = hour % ONE_DAY_IN_HOUR; in SetTime24Hour()
27 void UIAbstractClock::SetTime12Hour(uint8_t hour, uint8_t minute, uint8_t second, bool am) in SetTime12Hour() argument
29 SetTime24Hour((hour % HALF_DAY_IN_HOUR) + (am ? 0 : HALF_DAY_IN_HOUR), minute, second); in SetTime12Hour()
/ohos5.0/foundation/ability/form_fwk/services/include/
H A Dform_timer.h44 int hour; variable
57 hour = -1; in FormTimer()
70 hour = -1;
83 hour = -1;
95 hour = hourTime;
/ohos5.0/docs/en/device-dev/guide/
H A Ddevice-clock-guide.md59 …te({{ hour * 30 + minute / 2 }}deg);"></image> <!--Set the hour hand image. (hour * 30) indicates …
109 hour: 0, // Define hours.
119 this.hour = nowTime.getHours()
122 if (this.hour < 10) {
123 this.hour = '0' + this.hour
138 <text class="digit-clock"> {{ hour }}:{{ minute }}:{{ second }}</text>
166 <text class="digit-clock">{{ hour }}:{{ minute }}:{{ second }}</text>
217 hour: 0,
227 this.hour = nowTime.getHours()
230 if (this.hour < 10) {
[all …]
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_abstract_clock.h88 UIAbstractClock(uint8_t hour, uint8_t minute, uint8_t second) in UIAbstractClock() argument
89 : currentHour_(hour), currentMinute_(minute), currentSecond_(second) in UIAbstractClock()
122 void SetTime24Hour(uint8_t hour, uint8_t minute, uint8_t second);
135 void SetTime12Hour(uint8_t hour, uint8_t minute, uint8_t second, bool am);
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/
H A Drtc_test.c126 (readTime->hour != writeTime->hour) || (readTime->minute != writeTime->minute) || in IsSameRtcTestTime()
168 tester->time.hour = tester->config.hour; in RtcReadWriteTimeTest()
190 tester->time.hour = RTC_DAY_HOURS; in RtcReadWriteMaxTimeTest()
212 tester->time.hour = 0; in RtcReadWriteMinTimeTest()
261 tester->time.hour = tester->config.hour + RTC_UNIT_DIFF; in RtcReadWriteAlarmTimeTest()
283 tester->time.hour = RTC_DAY_HOURS; in RtcReadWriteAlarmMaxTimeTest()
305 tester->time.hour = 0; in RtcReadWriteAlarmMinTimeTest()
328 tester->time.hour = tester->config.hour; in RtcAlarmEnableTest()
384 tester->time.hour = tester->config.hour; in RtcAlarmIrqTest()
563 tester->time.hour = 0; in RtcTestSample()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-basic-picker.md133 …r:&nbsp;year,&nbsp;month:&nbsp;month,&nbsp;day:&nbsp;day,&nbsp;&nbsp;hour:&nbsp;hour,&nbsp;minute:…
141 | change | {&nbsp;hour:&nbsp;hour,&nbsp;minute:&nbsp;minute,&nbsp;[second:&nbsp;second]&nbsp;} | 时间…
276 this.timevalue = e.hour + ":" + e.minute + ":" + e.second;
278 message: "Time:" + e.hour + ":" + e.minute + ":" + e.second
281 this.timevalue = e.hour + ":" + e.minute;
283 message: "Time:" + e.hour + ":" + e.minute
293 this.datetimevalue = e.year + "-" + e.month + "-" + e.day + " " + e.hour + ":" + e.minute;
295 message: "Time:" + (e.month + 1) + "-" + e.day + " " + e.hour + ":" + e.minute
/ohos5.0/drivers/hdf_core/framework/support/platform/src/rtc/
H A Drtc_base.c50 IS_INVALID_HOUR(time->hour) || IS_INVALID_MIN(time->minute) || in RtcIsInvalid()
97 … time->year, time->month, time->day, time->hour, time->minute, time->second, time->millisecond); in RtcTimeToTimestamp()
103 … seconds = ((uint64_t)time->hour * RTC_MAX_MINUTE + time->minute) * RTC_MAX_SECOND + time->second; in RtcTimeToTimestamp()
145 time->hour = daySeconds / RTC_HOUR_SECONDS; in TimestampToRtcTime()
150 …time->year, time->month, time->day, time->weekday, time->hour, time->minute, time->second, time->m… in TimestampToRtcTime()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_row_accessibility_property.cpp44 auto hour = static_cast<int32_t>(hourPickerColumnPattern->GetCurrentIndex()); // + 1; in GetText() local
46 hour += 1; in GetText()
48 std::string textHour = std::to_string(hour); in GetText()
49 if (hour < DOUBLE_DIGIT) { in GetText()
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-basic-clock.md21 …t day).<br>Each set of resources contains four images for the clock face, hour hand, minute hand, …
30hour hand images used in the daytime.<br>- The height of the hour hand images must be the same as …
36 … | No | Path of hour hand images used in the nighttime.<br>If this parameter is no…
62 | hour | {hour: number} | Triggered on the hour.|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-methods-timepicker-dialog.md58 …t/js-apis-intl.md#datetimeoptions) | 否 | 设置时分是否显示前置0,目前只支持设置hour和minute参数。<br/>默认值:<br/>hour: 24小时…
91 if (value.hour != undefined && value.minute != undefined) {
92 this.selectTime.setHours(value.hour, value.minute)
126 if (value.hour != undefined && value.minute != undefined) {
127 this.selectTime.setHours(value.hour, value.minute)
188 if (value.hour != undefined && value.minute != undefined) {
189 this.selectTime.setHours(value.hour, value.minute)
242 if (value.hour != undefined && value.minute != undefined) {
243 this.selectTime.setHours(value.hour, value.minute);
H A Dts-basic-components-timepicker.md149 …pis-intl.md#datetimeoptions) | 是 | 设置时分秒是否显示前置0,目前只支持设置hour、minute和second参数。<br/>默认值:<br/>hour: …
193 | hour | number | 否 | 否 | 选中时间的时。<br/>取值范围:[0-23] |
221 if(value.hour >= 0) {
222 this.selectedTime.setHours(value.hour, value.minute)
/ohos5.0/base/telephony/telephony_data/common/include/
H A Dtime_util.h32 int hour = ltm->tm_hour; in FormatDate() local
47 if (hour < DOUBLE_DIGIT) { in FormatDate()
50 date.append(std::to_string(hour)); in FormatDate()
/ohos5.0/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A DReminderHelperTest.js135 hour: 21, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e0800.alarm
176 hour: 21, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e0900.alarm
218 hour: 23, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e0a00.calendar.dateTime
261 hour: 23, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e0b00.calendar.dateTime
410 hour: 23, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e0f00.calendar.dateTime
1021 hour: 21, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e2200.alarm
1062 hour: 21, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e2300.alarm
1103 hour: 21, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e2400.alarm
1137 hour: 21, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e2500.alarm
1312 hour: 21, property in AnonymousFunction0d3e803e0100.AnonymousFunction0d3e803e2c00.alarm
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-basic-picker.md63hour format and distinguished by a.m. and p.m.<br>- **24**: displayed in 24-hour format.<br>Since …
74hour format and distinguished by a.m. and p.m.<br>- **24**: displayed in 24-hour format.<br>Since …
134 | change | { year: year, month: month, day: day, hour: hour, minute: minute} | Triggered when an i…
142 | change | { hour: hour, minute: minute, [second: second] } | Triggered when an item is selected an…
277 this.timevalue = e.hour + ":" + e.minute + ":" + e.second;
279 message: "Time:" + e.hour + ":" + e.minute + ":" + e.second
282 this.timevalue = e.hour + ":" + e.minute;
284 message: "Time:" + e.hour + ":" + e.minute
294 this.datetimevalue = e.year + "-" + e.month + "-" + e.day + " " + e.hour + ":" + e.minute;
296 message: "Time:" + (e.month + 1) + "-" + e.day + " " + e.hour + ":" + e.minute

123456789