Home
last modified time | relevance | path

Searched refs:setTime (Results 1 – 11 of 11) sorted by relevance

/base/time/time_service/test/unittest/js_test/permission/
DSystemDateTimeSet.test.js38 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) => {
DSystemTimeSet.test.js38 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/
DREADME.md34 | 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}`);
DREADME_zh.md37 | 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/
DSystemTime.test.js31 systemTime.setTime(nowTime).then(() => {
50 systemTime.setTime(nowTime, (err) => {
DSystemDateTime.test.js33 systemDateTime.setTime(nowTime).then(() => {
52 systemDateTime.setTime(nowTime, (err) => {
/base/time/time_service/test/unittest/js_test/nopermission/systemapi/
DSystemDateTime.test.js31 systemDateTime.setTime(nowTime).then(() => {
50 systemDateTime.setTime(nowTime, (err) => {
/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_request_calendar.cpp122 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/
DZipAlign.java68 outEntry.setTime(timestamp); in copyFiles()
/base/global/i18n/frameworks/intl/src/
Ddate_time_format.cpp515 calendar->setTime((UDate)milliseconds, status); in Format()
534 calendar->setTime((UDate)fromMilliseconds, status); in FormatRange()
542 toCalendar->setTime((UDate)toMilliseconds, status); in FormatRange()
Di18n_calendar.cpp165 calendar_->setTime(value, status); in SetTime()