Home
last modified time | relevance | path

Searched refs:datetime (Results 1 - 12 of 12) sorted by relevance

/test/xts/acts/global_lite/i18n_lite/datetime_posix/src/
H A DUnitDateTimeTest.cpp80 DateTimeFormat *datetime = new DateTimeFormat(patternFormats[i], localeInfo); in HWTEST_P() local
81 ASSERT_TRUE(datetime != nullptr); in HWTEST_P()
85 datetime->Format(cal, "+1:45", appendTo, status); in HWTEST_P()
87 delete datetime; in HWTEST_P()
110 DateTimeFormat *datetime = new DateTimeFormat(patternFormats[i], localeInfo); in HWTEST_P() local
111 ASSERT_TRUE(datetime != nullptr); in HWTEST_P()
115 datetime->Format(cal, "+0:00", appendTo, status); in HWTEST_P()
117 delete datetime; in HWTEST_P()
140 DateTimeFormat *datetime = new DateTimeFormat(patternFormats[i], localeInfo); in HWTEST_P() local
141 ASSERT_TRUE(datetime ! in HWTEST_P()
159 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
173 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
188 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
204 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
220 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
236 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
251 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
265 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
280 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
296 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
312 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
328 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
343 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
356 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
371 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
386 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, localeInfo); HWTEST_P() local
411 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
430 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
449 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
468 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
487 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
506 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
525 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
544 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
563 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
582 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
601 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
620 DateTimeFormat *datetime = new DateTimeFormat(YEAR_ABBR_MONTH_WIDE_WEEKDAY_DAY, *locale); HWTEST_F() local
639 DateTimeFormat *datetime = new DateTimeFormat(YEAR_SHORT_MONTH_ABBR_WEEKDAY_DAY, *locale); HWTEST_F() local
658 DateTimeFormat *datetime = new DateTimeFormat(MEDIUM, *locale); HWTEST_F() local
677 DateTimeFormat *datetime = new DateTimeFormat(MEDIUM, *locale); HWTEST_F() local
696 DateTimeFormat *datetime = new DateTimeFormat(YEAR_SHORT_MONTH_ABBR_WEEKDAY_DAY, *locale); HWTEST_F() local
715 DateTimeFormat *datetime = new DateTimeFormat(MEDIUM, *locale); HWTEST_F() local
[all...]
/test/xts/tools/lite/reliability/
H A DRebootPressTest.py30 start = datetime.datetime.now()
31 now = datetime.datetime.now()
41 print("Current Time is:" + str(datetime.datetime.now()))
45 start = datetime.datetime.now()
52 now = datetime.datetime
[all...]
H A DNativePressTest.py113 start = datetime.datetime.now()
114 now = datetime.datetime.now()
117 now = datetime.datetime.now()
H A Dutils.py18 import datetime namespace
/test/xts/acts/global_lite/i18n_lite/datetimerecall_posix/src/
H A DUnitDateTimeRecallTest.cpp64 * @tc.name test datetime locale recall,locale is LocaleInfo en,ZZ
70 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, *locale); in HWTEST_F() local
71 std::string formatWeekName = datetime->GetWeekName(0, DateTimeDataType::FORMAT_ABBR); in HWTEST_F()
78 delete datetime; in HWTEST_F()
84 * @tc.name test datetime locale recall,locale is LocaleInfo zh,ZZ
90 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, *locale); in HWTEST_F() local
91 std::string formatWeekName = datetime->GetWeekName(0, DateTimeDataType::FORMAT_ABBR); in HWTEST_F()
98 delete datetime; in HWTEST_F()
104 * @tc.name test datetime locale recall,locale is LocaleInfo zh,Hans,ZZ
110 DateTimeFormat *datetime in HWTEST_F() local
130 DateTimeFormat *datetime = new DateTimeFormat(HOUR12_MINUTE_SECOND, *locale); HWTEST_F() local
[all...]
/test/testfwk/xdevice/plugins/devicetest/utils/
H A Dtime_util.py20 from datetime import datetime namespace
70 get formated datetime that only contains year month day hour minute
73 Obtains the datetime object, which contains only the year, month,
85 return datetime(*(time.localtime(time_value)[:6]))
90 get formated datetime used to generate a file that only contains
152 start_timestamp = datetime.strptime(
154 end_timestamp = datetime.strptime(
/test/testfwk/xdevice/src/xdevice/_core/environment/
H A Denv_pool.py410 import datetime namespace
411 dt2 = datetime.datetime.fromtimestamp(t2)
412 dt1 = datetime.datetime.fromtimestamp(t1)
/test/testfwk/xdevice/src/xdevice/_core/
H A Dutils.py33 from datetime import timezone
34 from datetime import timedelta
35 from datetime import datetime namespace
714 return datetime.now(tz=sh_tz)
757 begin: int/datetime, begin time
758 end : int/datetime, end time
763 # 传入datetime对象
764 if isinstance(begin, datetime) and isinstance(end, datetime)
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
H A Doh_yara_driver.py25 from datetime import datetime namespace
180 current_date_str = datetime.now().strftime('%Y-%m')
275 source_date = datetime.strptime(date_str, '%Y-%m')
276 security_patch_date = datetime.strptime(self.security_patch[:-3], '%Y-%m')
/test/testfwk/developer_test/local_coverage/interface_coverage/
H A Dmake_report.py22 import datetime namespace
106 currdatetime = datetime.date.today().strftime("%Y-%m-%d")
/test/testfwk/developer_test/src/core/command/
H A Drun.py26 import datetime namespace
223 current_time = datetime.datetime.now()
/test/testfwk/xdevice/src/xdevice/_core/executor/
H A Dscheduler.py20 import datetime namespace
671 k_spt = datetime.datetime.strptime(
673 d_spt = datetime.datetime.strptime("-".join(device_time), "%Y-%m")

Completed in 8 milliseconds