Searched refs:setTime (Results 1 – 11 of 11) sorted by relevance
/base/time/time_service/test/unittest/js_test/permission/ |
D | SystemDateTimeSet.test.js | 38 systemDateTime.setTime(123235423411).then(() => { 57 systemDateTime.setTime(time, (err) => { 76 systemDateTime.setTime(time).then(() => { 95 systemDateTime.setTime(time, (err) => { 116 systemDateTime.setTime("time").then(() => { 139 systemDateTime.setTime("time", (err) => { 163 systemDateTime.setTime(-1).then(() => { 181 systemDateTime.setTime(-1, (err) => {
|
D | SystemTimeSet.test.js | 38 systemTime.setTime(123235423411).then(() => { 57 systemTime.setTime(time, (err) => { 76 systemTime.setTime(time).then(() => { 95 systemTime.setTime(time, (err) => { 116 systemTime.setTime("time").then(() => { 139 systemTime.setTime("time", (err) => { 164 systemTime.setTime(-1).then(() => { 187 systemTime.setTime(-1, (err) => {
|
/base/time/time_service/ |
D | README.md | 34 | setTime(time : number) : Promise<boolean> | Set the system time (1970-01-01 to… 35 | setTime(time : number, callback : AsyncCallback<boolean>) : void | Set the system time (1970-01-0… 74 systemTime.setTime(time).then((value) => { 75 console.log(`success to systemTime.setTime: ${value}`); 77 console.error(`failed to systemTime.setTime because ${err.message}`) 82 systemTime.setTime(time, (err, value) => { 84 console.error(`failed to systemTime.setTime because ${err.message}`); 87 console.log(`success to systemTime.setTime: ${value}`);
|
D | README_zh.md | 37 | setTime(time : number) : Promise | 设置系统时间(1970-01-01至今毫秒数),Promise方式。… 38 | setTime(time : number, callback : AsyncCallback<boolean>) : void | 设置系统时间(1970-01-01至今毫秒数),callba… 92 systemDateTime.setTime(time).then(() => { 105 systemDateTime.setTime(time, (error) => {
|
/base/time/time_service/test/unittest/js_test/nopermission/acl/ |
D | SystemTime.test.js | 31 systemTime.setTime(nowTime).then(() => { 50 systemTime.setTime(nowTime, (err) => {
|
D | SystemDateTime.test.js | 33 systemDateTime.setTime(nowTime).then(() => { 52 systemDateTime.setTime(nowTime, (err) => {
|
/base/time/time_service/test/unittest/js_test/nopermission/systemapi/ |
D | SystemDateTime.test.js | 31 systemDateTime.setTime(nowTime).then(() => { 50 systemDateTime.setTime(nowTime, (err) => {
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | reminder_request_calendar.cpp | 122 struct tm setTime; in GetNextDay() local 123 setTime.tm_year = GetCTime(TimeTransferType::YEAR, settedYear); in GetNextDay() 124 setTime.tm_mon = GetCTime(TimeTransferType::MONTH, settedMonth); in GetNextDay() 125 setTime.tm_mday = static_cast<int>(i); in GetNextDay() 126 setTime.tm_hour = target.tm_hour; in GetNextDay() 127 setTime.tm_min = target.tm_min; in GetNextDay() 128 setTime.tm_sec = target.tm_sec; in GetNextDay() 129 setTime.tm_isdst = -1; in GetNextDay() 140 if (mktime(&nowTime) >= mktime(&setTime)) { in GetNextDay()
|
/base/update/packaging_tools/zipalign/src/main/java/com/ohos/ |
D | ZipAlign.java | 68 outEntry.setTime(timestamp); in copyFiles()
|
/base/global/i18n/frameworks/intl/src/ |
D | date_time_format.cpp | 515 calendar->setTime((UDate)milliseconds, status); in Format() 534 calendar->setTime((UDate)fromMilliseconds, status); in FormatRange() 542 toCalendar->setTime((UDate)toMilliseconds, status); in FormatRange()
|
D | i18n_calendar.cpp | 165 calendar_->setTime(value, status); in SetTime()
|