/foundation/arkui/ace_engine_lite/frameworks/examples/showcase/src/main/js/default/pages/component/list/list/list14/ |
H A D | index.js | 146 let hours = now.getHours(); 152 hours = (hours < 10 ? '0' : '') + hours; 156 return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
|
/foundation/arkui/ace_engine/test/component_test/tools/previewer_host/utils/ |
H A D | date.js | 35 let hours = Math.floor(duration / (1000 * 60 * 60)); 38 let formattedTime = `${hours}小时${minutes}分钟${seconds}秒`;
|
/foundation/arkui/ace_engine/test/component_test/tools/middle_ground/util/ |
H A D | index.js | 91 const hours = date.getHours(); 95 `${hours.toString().padStart(2, '0')}` +
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_store_rekey_test.cpp | 161 std::chrono::system_clock::to_time_t(std::chrono::system_clock::system_clock::now() - std::chrono::hours(rep)); in ChangeKeyFileDate() 261 ASSERT_TRUE(std::chrono::system_clock::now() - changedDate > std::chrono::hours(RdbRekeyTest::HOURS_EXPIRED)); in HWTEST_F() 295 ASSERT_TRUE(std::chrono::system_clock::now() - changedDate > std::chrono::hours(RdbRekeyTest::HOURS_NOT_EXPIRED)); 428 ASSERT_TRUE(std::chrono::system_clock::now() - changedDate > std::chrono::hours(RdbRekeyTest::HOURS_EXPIRED)); in HWTEST_F() 442 ASSERT_TRUE(std::chrono::system_clock::now() - changedDate > std::chrono::hours(RdbRekeyTest::HOURS_EXPIRED)); in HWTEST_F()
|
/foundation/multimedia/player_framework/services/utils/ |
H A D | time_format_utils.cpp | 57 int hours = std::stoi(iso8601Str.substr(length - 4, 2)); in FormatDateTimeByTimeZone() local 59 long seconds = (hours * 60 + mins) * 60; in FormatDateTimeByTimeZone()
|
H A D | media_dfx.cpp | 434 auto hour = std::chrono::duration_cast<std::chrono::hours>(diff).count(); in ReportMediaInfo() 436 MEDIA_LOG_I("Over 4 hours, report the event"); in ReportMediaInfo()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler_impl/ |
H A D | none_io_waiter.cpp | 47 static const auto oneYear = std::chrono::hours(HOURS_PER_YEAR); in WaitFor()
|
/foundation/filemanagement/storage_service/services/storage_manager/include/storage/ |
H A D | storage_monitor_service.h | 49 std::chrono::steady_clock::now()) - std::chrono::hours(SMART_EVENT_INTERVAL);
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | video_view.cpp | 497 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, "%02hhu:%02hhu:%02hhu", hours, minutes, seconds) < 0) {
in FormatTime()
|
/test/xts/acts/arkui/ace_standard/entry/src/main/js/MainAbility/pages/pickerView/router/ |
H A D | index.js | 537 const hours = date.getHours();
539 return this.concat(hours, minutes);
546 concat(hours, minutes) {
547 return `${this.fill(hours)}:${this.fill(minutes)}`;
|
/test/xts/acts/arkui/ace_standard/entry/src/main/js/default/pages/pickerView/router/ |
H A D | index.js | 537 const hours = date.getHours();
539 return this.concat(hours, minutes);
546 concat(hours, minutes) {
547 return `${this.fill(hours)}:${this.fill(minutes)}`;
|
/test/xts/acts/arkui/ace_standard/entry/src/ohosTest/js/MainAbility/pages/pickerView/router/ |
H A D | index.js | 537 const hours = date.getHours();
539 return this.concat(hours, minutes);
546 concat(hours, minutes) {
547 return `${this.fill(hours)}:${this.fill(minutes)}`;
|
/test/xts/acts/arkui/ace_standard/entry/src/ohosTest/js/default/pages/pickerView/router/ |
H A D | index.js | 537 const hours = date.getHours();
539 return this.concat(hours, minutes);
546 concat(hours, minutes) {
547 return `${this.fill(hours)}:${this.fill(minutes)}`;
|
/foundation/filemanagement/storage_service/services/storage_manager/storage/src/ |
H A D | storage_monitor_service.cpp | 164 int32_t duration = static_cast<int32_t>(std::chrono::duration_cast<std::chrono::hours>
in CheckAndEventNotify()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/ |
H A D | kvstore_meta_manager.cpp | 252 executors->Schedule(std::chrono::hours(RETRY_INTERVAL), GetBackupTask(queue, executors, store)); in GetMetaKvStore() 268 executors->Schedule(std::chrono::hours(RETRY_INTERVAL), GetBackupTask(queue, executors, store)); in GetBackupTask()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/data/ |
H A D | published_data.cpp | 182 // published data is valid in 240 hours
in ClearAging() 184 std::chrono::system_clock::now() - std::chrono::duration_cast<std::chrono::seconds>(std::chrono::hours(240));
in ClearAging()
|
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | metadata_extractor.cpp | 149 int32_t hours = stoi(offsetStr.substr(1, 2)); in offsetTimeToSeconds() local 152 int totalSeconds = hours * HOURSTOSECOND + minutes * MINUTESTOSECOND; in offsetTimeToSeconds()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | store_factory_test.cpp | 129 std::chrono::system_clock::system_clock::now() - std::chrono::hours(duration)); in ChangeKeyDate()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | security_manager.cpp | 376 return ((createTime + std::chrono::hours(HOURS_PER_YEAR)) < std::chrono::system_clock::now()); in IsKeyOutdated()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/ |
H A D | cloud_server_impl.cpp | 353 ((std::chrono::system_clock::now() + std::chrono::hours(INTERVAL)).time_since_epoch()).count(); in DoSubscribe()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_security_manager.cpp | 573 return ((timePoint + std::chrono::hours(HOURS_PER_YEAR)) < std::chrono::system_clock::now());
in IsKeyExpired()
|
/test/testfwk/xdevice/src/xdevice/_core/ |
H A D | utils.py | 711 timedelta(hours=8),
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/ |
H A D | video_pattern.cpp | 76 auto hours = time / SECONDS_PER_HOUR; in IntTimeToText() local 77 return StringUtils::FormatString(FORMAT_HH_MM_SS.c_str(), hours, minutes, seconds); in IntTimeToText()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/ |
H A D | cloud_service_impl.cpp | 1071 auto onThreshold = duration_cast<milliseconds>((system_clock::now() + hours(EXPIRE_INTERVAL)).time_since_epoch()); in DoSubscribe() 1439 expire = expire - TIME_BEFORE_SUB; // before 12 hours
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/PathDrawingSample/hvigor/ |
H A D | hvigor-wrapper.js | 16 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min": (…)
|