/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-datepicker.md | 19 Creates a date picker in the given date range. 47 | The start date is later than the end date, and the selected date is not set. | The start date, … 48 …date is later than the end date, and the selected date is earlier than the default start date. |… 49 …date is later than the end date, and the selected date is later than the default end date. | The… 51 | The selected date is earlier than the start date. | The start date is set to the selected date.… 52 | The selected date is later than the end date. | The selected date is set to the end date. | 54 | The end date is earlier than the current system date, and the selected date is not set. | The e… 56 … start date or end date is earlier than the earliest date in the valid date range. | The start d… 57 …The start date or end date is later than the latest date in the valid date range. | The start da… 58 …date and end date are earlier than the earliest date in the valid date range.| The start date and … [all …]
|
H A D | ts-methods-datepicker-dialog.md | 106 | The start date is later than the end date, and the selected date is not set. | The start date, … 107 …date is later than the end date, and the selected date is earlier than the default start date. |… 108 …date is later than the end date, and the selected date is later than the default end date. | The… 109 …date is later than the end date, and the selected date is within the range of the default start da… 110 | The selected date is earlier than the start date. | The selected date is set to the start date.… 111 | The selected date is later than the end date. | The selected date is set to the end date. | 112 | The start date is later than the current system date, and the selected date is not set. | The s… 113 | The end date is earlier than the current system date, and the selected date is not set. | The s… 115 … The start date or end date is earlier than the valid date range. | The start date or end date i… 116 | The start date or end date is later than the valid date range. | The start date or end date is … [all …]
|
H A D | ohos-arkui-advanced-Counter.md | 75 | INLINE_DATE | Inline date counter. | 131 Defines the attributes and events of the inline date style counter. 144 …| (date: [DateData](#datedata))=>void | No | - | Callback invoked when the date changes. The… 148 Defines common date attributes and methods. 180 Current date. 190 | string | Current date.| 288 // Inline date counter 294 onDateChange: (date: DateData) => { 295 console.log("onDateChange Date: " + date.toString()); 368 // Inline date counter [all …]
|
/ohos5.0/base/telephony/telephony_data/common/include/ |
H A D | time_util.h | 36 date.append("-"); in FormatDate() 38 date.append("0"); in FormatDate() 41 date.append("-"); in FormatDate() 43 date.append("0"); in FormatDate() 46 date.append(" "); in FormatDate() 48 date.append("0"); in FormatDate() 51 date.append(":"); in FormatDate() 53 date.append("0"); in FormatDate() 56 date.append(":"); in FormatDate() 58 date.append("0"); in FormatDate() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_date_component.cpp | 100 date.SetMonth(date.GetMonth() - 1); in GetSelectedObject() 300 date.SetYear(date.GetYear() + 1); // add 1 year, the next year in HandleSolarMonthChange() 306 uint32_t yearVal = date.GetYear() > 0 ? date.GetYear() - 1 : 0; in HandleSolarMonthChange() 344 date.SetMonth(date.GetMonth() + 1); // add to next month in HandleSolarDayChange() 347 date.SetYear(date.GetYear() + 1); // add to next year in HandleSolarDayChange() 355 date.SetMonth(date.GetMonth() - 1); // reduce to previous month in HandleSolarDayChange() 358 date.SetYear(date.GetYear() - 1); // reduce to previous year in HandleSolarDayChange() 363 …date.SetDay(PickerDate::GetMaxDay(date.GetYear(), date.GetMonth())); // reduce to previous month's… in HandleSolarDayChange() 521 days += LunarCalculator::GetLunarMonthDays(date.year, date.month); in LunarToSolar() 709 date = start; in AdjustSolarDate() [all …]
|
H A D | picker_datetime_component.cpp | 62 auto date = selectedDate_; in GetSelectedObject() local 64 date.SetMonth(date.GetMonth() ? date.GetMonth() - 1 : 0); in GetSelectedObject() 117 auto days = date.ToDays(); in OnSubsidiaryChange() 183 Date date; in GetMonthDayFormatString() local 184 date.year = outDate.GetYear(); in GetMonthDayFormatString() 185 date.month = outDate.GetMonth(); in GetMonthDayFormatString() 186 date.day = outDate.GetDay(); in GetMonthDayFormatString() 218 PickerDate date; in OnDataLinking() local 219 date.FromDays(days); in OnDataLinking() 229 PickerDate date; in OnDataLinking() local [all …]
|
H A D | picker_data.h | 262 PickerDateF date; in CreateYear() local 263 date.year = year; in CreateYear() 264 return date; in CreateYear() 269 PickerDateF date; variable 272 date.leap = leap; 273 return date; 278 PickerDateF date; variable 279 date.day = day; 281 return date; 288 date.day = day; [all …]
|
H A D | picker_data.cpp | 24 PickerDate date; in Current() local 29 return date; in Current() 35 return date; in Current() 71 DateTime date; in ToString() local 72 date.year = year_; in ToString() 74 date.day = day_; in ToString() 244 DateTime date; in Init() local 245 date.year = year; in Init() 255 DateTime date; in Init() local 261 DateTime date; in Init() local [all …]
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-shell-cmd-date.md | 1 # date chapter 6 date命令用于查询系统日期和时间。 11 - date 13 - date --help 15 - date +[_Format_] 17 - date -u 33 - date参数缺省时,默认显示系统UTC日期和时间。 41 date -u参数 shell端暂不支持。切换mksh版本可全支持,方法:cd bin; ./mksh。 45 举例:输入 date +%Y--%m--%d 54 OHOS:/$ date +%Y--%m--%d
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-cmd-date.md | 1 # date chapter 6 This command is used to query the system date and time. 11 - date 13 - date --help 15 - date +[_Format_] 17 - date -u 27 | +Format | Prints the date and time in the specified format.| Placeholders listed in **--help**| 37 - Currently, this command cannot be used to set the time or date. 45 Run **date +%Y--%m--%d**. 50 System date in the specified format: [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/v2.2-beta2/ |
H A D | js-apidiff-v2.2-beta2.md | 8 | Time, date, and digit module - Locale | toString(): string | Added | - | 11 | Time, date, and digit module - Locale | calendar | Added | - | 12 | Time, date, and digit module - Locale | caseFirst | Added | - | 13 | Time, date, and digit module - Locale | collation | Added | - | 14 | Time, date, and digit module - Locale | hourCycle | Added | - | 16 | Time, date, and digit module - Locale | numeric | Added | - | 17 | Time, date, and digit module - Locale | language | Added | - | 18 | Time, date, and digit module - Locale | script | Added | - | 19 | Time, date, and digit module - Locale | region | Added | - | 20 | Time, date, and digit module - Locale | baseName | Added | - | [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_pattern.cpp | 774 date.SetMonth(date.GetMonth() + 1); // add to next month in HandleSolarDayChange() 777 date.SetYear(date.GetYear() + 1); // add to next year in HandleSolarDayChange() 799 …date.SetDay(PickerDate::GetMaxDay(date.GetYear(), date.GetMonth())); // reduce to previous month's… in HandleSolarDayChange() 942 date.SetYear(date.GetYear() + 1); // add to next year in HandleSolarMonthDaysChange() 959 date.SetDay(PickerDate::GetMaxDay(date.GetYear(), date.GetMonth())); in HandleSolarMonthDaysChange() 1118 date.SetYear(date.GetYear() + 1); // add 1 year, the next year in HandleSolarMonthChange() 2019 days += LunarCalculator::GetLunarMonthDays(date.year, date.month); in LunarToSolar() 2063 DateTime date; in GetYear() local 2104 DateTime date; in GetSolarDay() local 2152 …monthStr = date.lunar ? GetLunarMonth(date.month.value(), date.leap) : GetSolarMonth(date.month.va… in GetFormatString() [all …]
|
/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/ |
H A D | js_test_date_napi.cpp | 38 napi_value date = nullptr; in CreateDateFun() local 39 NAPI_CALL(env, napi_create_date(env, time, &date)); in CreateDateFun() 41 return date; in CreateDateFun() 47 napi_value date = nullptr, result = nullptr; in IsDateFun() local 51 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, &date, nullptr, nullptr)); in IsDateFun() 52 NAPI_CALL(env, napi_is_date(env, date, &is_date)); in IsDateFun() 61 napi_value date = nullptr, result = nullptr; in GetDateValueFun() local 64 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, &date, nullptr, nullptr)); in GetDateValueFun() 65 NAPI_CALL(env, napi_get_date_value(env, date, &value)); in GetDateValueFun()
|
/ohos5.0/docs/en/application-dev/internationalization/ |
H A D | i18n-time-date.md | 11 …date format and time format must be set at the same time. If the date format, but not the time for… 35 3. Format the date and time. 37 // Format the date and time. 38 let formattedDate: string = dateFormat.format(date: Date); 101 // Set the date to be formatted. 102 let date = new Date(2021, 8, 17, 13, 4, 0); 112 let formattedDate2 = dateFormat2.format(date); // formattedDate2: 2021/9/17 13:04 122 // Customize the date and time format. 124 let formattedDate5 = dateFormat5.format(date); // formattedDate5: 2021/9/17 1:04 PM 126 // Customize the date and time format for users accustomed to other numeral systems. [all …]
|
H A D | i18n-calendar.md | 5 …date and time on the calendar also vary according to the time zone and DST. Therefore, the system … 9 …ollowing illustrates how to view the lunar calendar date corresponding to the Gregorian calendar d… 21 // Set the date for the Calendar object. 52 // Check whether a given date is a weekend for the Calendar object. 57 calendar.add("date", 2); 58 calendar.get("date"); // 17 60 // Check the number of days between the Calendar object and the specified date. 64 3. Obtain the lunar calendar date corresponding to the Gregorian calendar date. 73 calendar.get ("date"); // Day, which is 8 in this example.
|
/ohos5.0/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/ |
H A D | net_stats_database_helper_test.cpp | 119 uint64_t date = 15254400; variable 120 ret = helper->SelectData(infos, UID_TABLE, date, LONG_MAX); 122 ret = helper->SelectData(infos, "", date, LONG_MAX); 135 uint64_t date = 15254400; variable 136 ret = helper->SelectData(uid, date, LONG_MAX, infos); 149 uint64_t date = 15254400; variable 150 ret = helper->SelectData(iface, date, LONG_MAX, infos); 164 uint64_t date = 15254400; variable 178 uint64_t date = 15254400; variable 195 uint64_t date = 15254400; variable [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | date_util.cpp | 24 Date date; in Current() local 27 CHECK_NULL_RETURN(local, date); in Current() 28 date.year = static_cast<uint32_t>(local->tm_year) + 1900; // local date start from 1900 in Current() 29 …date.month = static_cast<uint32_t>(local->tm_mon) + 1; // local month start from 0 to 11, need … in Current() 30 date.day = static_cast<uint32_t>(local->tm_mday); in Current() 31 date.week = static_cast<uint32_t>(local->tm_wday); in Current() 32 return date; in Current()
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/entryability/candidateWifiModel/common/utils/ |
H A D | DateUtil.ets | 22 let date = new Date(); 23 let year = date.getFullYear(); 24 let month = date.getMonth() + CommonConstants.PLUS_ONE; 25 let day = date.getDate(); 26 let hours = date.getHours(); 27 let minutes = date.getMinutes().toString(); 31 let second = date.getSeconds().toString();
|
/ohos5.0/base/security/security_guard/services/data_collect/store/src/ |
H A D | audit_event_mem_rdb_helper.cpp | 109 int AuditEventMemRdbHelper::QueryEventFromMemByDate(std::vector<SecEvent> &events, std::string date) in QueryEventFromMemByDate() argument 112 predicates.LessThan(DATE, date); in QueryEventFromMemByDate() 128 resultSet->GetString(table.dateIndex, event.date); in QueryEventFromMemByDate() 151 int AuditEventMemRdbHelper::DeleteFlushDataFromMem(std::string date) in DeleteFlushDataFromMem() argument 154 predicates.LessThan(DATE, date); in DeleteFlushDataFromMem() 163 int AuditEventMemRdbHelper::DeleteExpiredDataFromMain(std::string date) in DeleteExpiredDataFromMain() argument 167 SecurityGuardUtils::StrToI64(date, time); in DeleteExpiredDataFromMain() 182 std::string date = SecurityGuardUtils::GetDate(); in FlushAllEvent() local 183 int ret = QueryEventFromMemByDate(events, date); in FlushAllEvent() 208 ret = DeleteFlushDataFromMem(date); in FlushAllEvent() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/alarm/src/main/js/default/pages/index/ |
H A D | index.js | 108 let date = new Date(); variable 109 let strHour = date.getHours(); 110 let strMin = date.getMinutes(); 161 let date = new Date(); variable 162 let strHour = date.getHours() + ''; 163 let strMin = date.getMinutes() + ''; 164 let strSecond = date.getSeconds() + ''; 165 let strDay = date.getDay() + '';
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-napi-about-date.md | 5 …Date** objects in C/C++. These APIs are useful for working with time- and date-related logic in th… 11 …date and time in ArkTS. With the **Date** object, you can create an object that represents a speci… 17 The following table lists the APIs for manipulating ArkTS date in C/C++. 41 …// Call napi_create_date to convert the double value to date and time, create an ArkTS object, and… 102 export const getDateValue: (date: Date) => number | void; 111 const date = new Date(); 112 hilog.info(0x0000, 'testTag', 'Node-API: output the Unix Time Stamp: %{public}d', date.getTime()); 113 …o(0x0000, 'testTag', 'Test Node-API napi_get_date_value: %{public}d', testNapi.getDateValue(date)); 154 export const isDate: <T>(date: T) => boolean | void; 164 let date = "123"; [all …]
|
H A D | use-jsvm-about-date.md | 5 …Date** objects in C/C++. These APIs are useful for working with time- and date-related logic in th… 11 …date and time in JS. With the **Date** object, you can create an object that represents a specific… 21 | OH_JSVM_IsDate | Checks whether a JS object is a date.| 25 …ss](use-jsvm-process.md). The following demonstrates only the C++ code involved in date management. 39 …// Call OH_JSVM_CreateDate to convert the double value into a JS value indicating the date and tim… 55 char *date = ctime(reinterpret_cast<time_t *>(&time)); 56 OH_LOG_INFO(LOG_APP, "JSVM CreateDate success:%{public}s", date); 91 // Convert the obtained Unix Time Stamp time into a date string for printing. 93 char *date = ctime(reinterpret_cast<time_t *>(&time)); 94 OH_LOG_INFO(LOG_APP, "JSVM GetDateValue success:%{public}s", date); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/ |
H A D | calendar_element.cpp | 124 auto date = Localization::GetInstance()->FormatDateTime(dateTime, "yyyyMMM"); in RegisterChangeEndListener() local 125 auto textComponent = AceType::MakeRefPtr<TextComponent>(date); in RegisterChangeEndListener() 195 [date = dateEvent_, weakController = WeakPtr<CalendarController>(calendarController_)]() { in BuildCardCalendar() 201 if (!date) { in BuildCardCalendar() 210 date(json->ToString()); in BuildCardCalendar() 222 auto date = calendar->GetDate(); in UpdateAttr() local 223 if (today.day != date.day || today.month != date.month) { in UpdateAttr() 224 calendarController_->SetToday(date); in UpdateAttr() 225 calendarController_->GoTo(date.month.year, date.month.month, date.day); in UpdateAttr() 226 calendarController_->UpdateTitle(date); in UpdateAttr()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-picker-view.md | 20 … text selector.<br>- **time**: time selector.<br>- **date**: date selector.<br>- **datetime**: dat… 43 | start | <time> | 1970-1-1 | No | Start date of the date selector, in the f… 44 | end | <time> | 2100-12-31 | No | End date of the date selector, in the for… 45 | selected | string | Current date | No | Default value of the date selector… 53 …date and time | No | Default value of the date and time selector. Th… 209 const date = new Date(); 210 const hours = date.getHours(); 211 const minutes = date.getMinutes(); 231 Selected: {{date}} 257 date: "", [all …]
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/ |
H A D | trace_flow_controller.cpp | 191 std::string date = TimeUtil::TimestampFormatToDate(happenTimeInSecond, "%Y%m%d"); in HasCallOnceToday() local 196 auto result = std::from_chars(date.c_str(), date.c_str() + date.size(), dateNum); in HasCallOnceToday() 198 HIVIEW_LOGW("convert error, dateStr: %{public}s", date.c_str()); in HasCallOnceToday() 208 std::string date = TimeUtil::TimestampFormatToDate(happenTimeInSecond, "%Y%m%d"); in RecordCaller() local 210 auto result = std::from_chars(date.c_str(), date.c_str() + date.size(), dateNum); in RecordCaller() 212 HIVIEW_LOGW("convert error, dateStr: %{public}s", date.c_str()); in RecordCaller()
|