Home
last modified time | relevance | path

Searched refs:hours (Results 1 – 25 of 91) sorted by relevance

1234

/ohos5.0/base/usb/usb_manager/test/native/js_unittest/
H A DDateAndTimeUtil.js31 const hours = datetime.getHours();
33 return this.concatTime(hours, minutes);
42 const hours = datetime.getHours();
69 concatTime(hours, minutes) { argument
70 return `${this.fill(hours)}:${this.fill(minutes)}`;
73 concatTimeWithSeconds(hours, minutes, milliseconds) { argument
108 const hours = str.substring(0, str.indexOf(':'));
110 if (hours < twelve) {
111 return this.morning.concat(`${hours}:${minutes}`);
113 if (hours == twelve) {
[all …]
/ohos5.0/docs/en/application-dev/internationalization/
H A Di18n-dst-transition.md15 1. Calculate the number of hours in a day.
16 …f hours in a day changes on the day of DST transition. On the day when DST starts, there are 23 ho…
18 …Calculate the number of hours between the same clock time before and after the DST transition. The…
28 …let hours = (time2 - time1)/(3600*1000) //The hours between the same wall clock time before and af…
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dtime-styles-shift.md47 let hours = date.getHours();
50 hours = hours > 12 ? hours - 12 : hours;
51 let hour = hours + minutes / 60;
213 let hours = date.getHours();
216 hours = hours > 12 ? hours - 12 : hours;
217 let hour = hours + minutes / 60;
/ohos5.0/base/update/updater/services/flashd/
H A Dflashd_basepkg.bat69 set /a hours=%end_h%-%start_h%
75 if %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins%
76 if %hours% lss 0 set /a hours = 24%hours%
79 set /a totalsecs = %hours%*3600 + %mins%*60 + %secs%
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/showcase/src/main/js/default/pages/component/list/list/list14/
H A Dindex.js146 let hours = now.getHours(); variable
152 hours = (hours < 10 ? '0' : '') + hours;
156 return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/Component/
H A DwebTitleBar.ets353 let hours: string | number = date.getHours();
354 hours = hours >= 10 ? hours : ('0' + hours);
361 return `${ hours }:${ minutes }:${ seconds }.${ milliSeconds }`;
371 let hours: string | number = date.getHours();
372 hours = hours >= 10 ? hours : ('0' + hours);
379 return `${ year }-${ month }-${ day }·${ hours }:${ minutes }:${ seconds }.${ milliSeconds }·`;
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-basic-picker-view.md37 | hours | number | 24<sup>1-4</sup><br/>-<sup>5+</sup> | 否 | 设置时间选择器采用的时间格式,可选值:<br/>-&…
54 | hours | number | 24<sup>1-4</sup><br/>-<sup>5+</sup> | 否 | 设置日期时间选择器采用的时间格式,可选值:…
210 const hours = date.getHours();
212 return this.concat(hours, minutes);
217 concat(hours, minutes) {
218 return `${this.fill(hours)}:${this.fill(minutes)}`;
274 …<picker-view class="date-picker" type="datetime" hours="24" lunarswitch="true" @change="handleCha…
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dui-js-components-picker.md79 picker的hours属性定义时间的展现格式,可选类型有12小时制和24小时制。
84 …<picker id="picker_time" type="time" value="12-hour format" hours="12" onchange="timeonchange" cl…
85 …<picker id="picker_time" type="time" value="24-hour format" hours="24" onchange="timeonchange" cl…
109 > - hours属性为12:按照12小时制显示,用上午和下午进行区分。
111 > - hours属性为24:按照24小时制显示。
183 <text class="txt">Office hours:</text>
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/model/
H A DDateTimeUtil.ts61 concatTime(hours: number, minutes: number, seconds: number) {
62 return `${this.fill(hours)}${this.fill(minutes)}${this.fill(seconds)}`
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/entryability/model/
H A DDateTimeUtil.ts61 concatTime(hours: number, minutes: number, seconds: number) {
62 return `${this.fill(hours)}${this.fill(minutes)}${this.fill(seconds)}`
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/pages/subStabilityTest/
H A DwebLatencyTest.ets447 let hours: string | number = date.getHours();
448 hours = hours >= 10 ? hours : ('0' + hours);
453 return `${ year }${ month }${ day }_${ hours }${ minutes }${ seconds }`;
463 let hours: string | number = date.getHours();
464 hours = hours >= 10 ? hours : ('0' + hours);
471 return `${ year }-${ month }-${ day }·${ hours }:${ minutes }:${ seconds }.${ milliSeconds }·`;
H A DwifiSwitchStabilityTest.ets414 let hours: string | number = date.getHours();
415 hours = hours >= 10 ? hours : ('0' + hours);
420 return `${ year }${ month }${ day }_${ hours }${ minutes }${ seconds }`;
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/model/
H A DDateTimeUtil.ts69 concatTime(hours: number, minutes: number, seconds: number) {
70 return `${this.fill(hours)}${this.fill(minutes)}${this.fill(seconds)}`
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js-lite/
H A Djs-lite-components-basic-picker-view.md130 const hours = date.getHours();
132 return this.concat(hours, minutes);
139 concat(hours, minutes) {
140 return `${this.fill(hours)}:${this.fill(minutes)}`;
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/entry/src/main/ets/model/
H A DDateTimeUtil.ts72 concatTime(hours: number, minutes: number, seconds: number): string {
73 return `${this.fill(hours)}${this.fill(minutes)}${this.fill(seconds)}`;
/ohos5.0/docs/zh-cn/application-dev/internationalization/
H A Di18n-dst-transition.md28 …let hours = (time2 - time1)/(3600*1000) //The hours between the same wall clock time before and af…
/ohos5.0/base/security/huks/test/reliability/src/
H A Dapi_pressure_test.cpp928 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
949 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
970 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
991 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
1024 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
1054 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
1075 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
1105 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
1135 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
1156 std::this_thread::sleep_for(std::chrono::hours(TEST_HOURS));
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Dui-js-components-picker.md79 Set the **hours** attribute to specify the time format used by the time picker. Available values in…
84 …<picker id="picker_time" type="time" value="12-hour format" hours="12" onchange="timeonchange" cl…
85 …<picker id="picker_time" type="time" value="24-hour format" hours="24" onchange="timeonchange" cl…
109 > - When **hours** is set to **12**, the time is displayed in 12-hour format and distinguished by a…
111 > - When **hours** is set to **24**, the time is displayed in 24-hour format.
183 <text class="txt">Office hours:</text>
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_monitor_service.cpp169 … std::chrono::time_point_cast<std::chrono::hours>(currentTime).time_since_epoch().count(); in CleanBundleCacheByInterval()
176 auto duration = std::chrono::duration_cast<std::chrono::hours>(currentTime - in CleanBundleCacheByInterval()
177 std::chrono::system_clock::time_point(std::chrono::hours(lastCleanCacheTime))).count(); in CleanBundleCacheByInterval()
213 int32_t duration = static_cast<int32_t>(std::chrono::duration_cast<std::chrono::hours> in CheckAndEventNotify()
/ohos5.0/foundation/resourceschedule/work_scheduler/
H A DREADME.md87 active group | minimum interval 2 hours
88 daily used group | minimum interval 4 hours
89 fixed group | minimum interval 24 hours
90 rare used group | minimum interval 48 hours
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/
H A Dylong_runtime_signal.rs30 let hours = duration.as_secs() / 3600; in print_time() localVariable
33 let formatted_time = format!("{:02}:{:02}:{:02}", hours, minutes, seconds); in print_time()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/entryability/candidateWifiModel/common/utils/
H A DDateUtil.ets26 let hours = date.getHours();
35 return `${year}/${month}/${day} ${hours}:${minutes}:${second}`;
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-basic-picker-view.md37 | hours | number | 24<sup>1-4</sup><br>-<sup>5+</sup> | No | Time format used by the tim…
54 | hours | number | 24<sup>1-4</sup><br>-<sup>5+</sup> | No | Time format used by th…
210 const hours = date.getHours();
212 return this.concat(hours, minutes);
217 concat(hours, minutes) {
218 return `${this.fill(hours)}:${this.fill(minutes)}`;
274 …<picker-view class="date-picker" type="datetime" hours="24" lunarswitch="true" @change="handleCha…
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dvideo_view.cpp497 uint8_t hours = inSeconds / PanelView::SECONDS_PER_HOUR; in FormatTime() local
501 if (hours >= PanelView::MAX_HOURS) { in FormatTime()
505 if (hours == 0) { in FormatTime()
512 if (sprintf_s(outBuffer, bufferLength, "%02d:%02d:%02d", hours, minutes, seconds) < 0) { in FormatTime()
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_store_rekey_test.cpp164 …:system_clock::to_time_t(std::chrono::system_clock::system_clock::now() - std::chrono::hours(rep)); in ChangeKeyFileDate()
264 …ASSERT_TRUE(std::chrono::system_clock::now() - changedDate > std::chrono::hours(RdbRekeyTest::HOUR…
298 …ASSERT_TRUE(std::chrono::system_clock::now() - changedDate > std::chrono::hours(RdbRekeyTest::HOUR…
431 …ASSERT_TRUE(std::chrono::system_clock::now() - changedDate > std::chrono::hours(RdbRekeyTest::HOUR…
445 …ASSERT_TRUE(std::chrono::system_clock::now() - changedDate > std::chrono::hours(RdbRekeyTest::HOUR…

1234