Home
last modified time | relevance | path

Searched refs:localtime (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/external/python/cpython3/Lib/test/test_email/
Dtest_utils.py56 t = utils.localtime()
61 t = utils.localtime()
67 t1 = utils.localtime(t0, isdst=-1)
68 t2 = utils.localtime(t1)
74 t1 = utils.localtime(t0, isdst=-1)
75 t2 = utils.localtime(t1)
82 t1 = utils.localtime(t0, isdst=1)
83 t2 = utils.localtime(t1)
90 t1 = utils.localtime(t0, isdst=1)
91 t2 = utils.localtime(t1)
[all …]
/external/python/cpython2/Lib/test/
Dtest_time.py29 == time.asctime(time.localtime(self.t)))
30 self.assertTrue(long(time.mktime(time.localtime(self.t)))
231 time.gmtime(xmas2002), time.localtime(xmas2002)
235 self.assertEqual(time.localtime(xmas2002).tm_isdst, 0)
240 self.assertNotEqual(time.gmtime(xmas2002), time.localtime(xmas2002))
246 self.assertEqual(time.localtime(xmas2002).tm_isdst, 0)
252 self.assertNotEqual(time.gmtime(xmas2002), time.localtime(xmas2002))
264 self.assertEqual(time.localtime(xmas2002).tm_isdst, 1)
280 for func in time.ctime, time.gmtime, time.localtime:
299 lt0 = time.localtime()
[all …]
/external/python/pybind11/include/pybind11/
Dchrono.h166 std::tm localtime = *std::localtime(&tt); in cast() local
168 return PyDateTime_FromDateAndTime(localtime.tm_year + 1900, in cast()
169 localtime.tm_mon + 1, in cast()
170 localtime.tm_mday, in cast()
171 localtime.tm_hour, in cast()
172 localtime.tm_min, in cast()
173 localtime.tm_sec, in cast()
/external/python/cpython3/Lib/test/
Dtest_time.py147 time.asctime(time.localtime(self.t)))
148 self.assertEqual(int(time.mktime(time.localtime(self.t))),
347 time.gmtime(xmas2002), time.localtime(xmas2002)
351 self.assertEqual(time.localtime(xmas2002).tm_isdst, 0)
356 self.assertNotEqual(time.gmtime(xmas2002), time.localtime(xmas2002))
362 self.assertEqual(time.localtime(xmas2002).tm_isdst, 0)
368 self.assertNotEqual(time.gmtime(xmas2002), time.localtime(xmas2002))
382 self.assertEqual(time.localtime(xmas2002).tm_isdst, 1)
398 for func in time.ctime, time.gmtime, time.localtime:
417 lt0 = time.localtime()
[all …]
/external/python/cpython2/Lib/sqlite3/
Ddbapi2.py43 return Date(*time.localtime(ticks)[:3])
46 return Time(*time.localtime(ticks)[3:6])
49 return Timestamp(*time.localtime(ticks)[:6])
/external/scapy/scapy/contrib/
Dppi_geotag.uts46 local_time = time.localtime()
48 assert time.localtime(utc_time.epoch) == local_time
56 local_time = time.localtime()
58 assert time.localtime(lme_time.epoch) == local_time
/external/python/cpython3/Lib/sqlite3/
Ddbapi2.py42 return Date(*time.localtime(ticks)[:3])
45 return Time(*time.localtime(ticks)[3:6])
48 return Timestamp(*time.localtime(ticks)[:6])
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/localtime/
D1-1.c24 timeptr = localtime(&current_time); in main()
27 printf("date: %s", (asctime(localtime((&current_time))))); in main()
/external/python/cpython3/Lib/email/
Dutils.py126 def formatdate(timeval=None, localtime=False, usegmt=False): argument
146 if localtime or usegmt:
150 if localtime:
331 def localtime(dt=None, isdst=-1): function
354 localtm = time.localtime(seconds)
/external/ltp/testcases/kernel/fs/lftest/
Dlftest.c59 asctime(localtime(&time1))); in main()
86 asctime(localtime(&time2))); in main()
/external/toybox/toys/other/
Duptime.c42 tm = localtime(&t); in uptime_main()
49 tm = localtime(&t); in uptime_main()
/external/bcc/
DQUICKSTART.md11 -v /etc/localtime:/etc/localtime:ro \
/external/autotest/server/cros/device_health_profile/
Ddevice_health_profile.py408 time.strftime(TIME_PATTERN, time.localtime()))
416 time.strftime(TIME_PATTERN, time.localtime()))
423 time.strftime(TIME_PATTERN, time.localtime()))
429 time.strftime(TIME_PATTERN, time.localtime()))
488 time.strftime(TIME_PATTERN, time.localtime()))
/external/icu/icu4c/source/tools/tzcode/
Dprivate.h268 # undef localtime
269 # define localtime tz_localtime macro
286 struct tm *localtime(time_t const *);
/external/python/cpython3/Doc/includes/
Dtzinfo_examples.py26 args = _time.localtime(stamp)[:6]
29 fold = (args == _time.localtime(stamp - dst_diff))
53 tt = _time.localtime(stamp)
/external/python/cpython2/Demo/scripts/
Dunbirthday.py21 elif not (1850 <= year <= time.localtime()[0]):
49 todaytuple = time.localtime()[:3]
/external/libcxx/include/
Dctime41 tm* localtime(const time_t* timer);
73 using ::localtime;
/external/python/cpython2/Lib/email/
Dutils.py124 def formatdate(timeval=None, localtime=False, usegmt=False): argument
144 if localtime:
145 now = time.localtime(timeval)
/external/python/cpython2/Modules/
Dtimemodule.c338 return time_convert(when, localtime); in time_localtime()
479 buf = *localtime(&tt); in time_strftime()
672 buf = *localtime(&tt); in time_asctime()
706 buf = localtime(&tt); in time_ctime()
834 p = localtime(&t); in inittimezone()
839 p = localtime(&t); in inittimezone()
/external/autotest/site_utils/
Dgenerate_test_report232 localtime = ''
247 localtime = localtime_
248 return timestamp, localtime
346 timestamp, localtime = self._CollectEndTimes(status_raw, status_re)
350 timestamp, localtime = self._CollectEndTimes(status_raw,
358 'localtime': localtime,
362 'info': self._CollectInfo(testdir, {'localtime': localtime,
/external/python/cpython3/Doc/library/
Demail.utils.rst14 .. function:: localtime(dt=None)
21 case, a positive or zero value for *isdst* causes ``localtime`` to presume
24 *isdst* causes the ``localtime`` to attempt to divine whether summer time
145 .. function:: formatdate(timeval=None, localtime=False, usegmt=False)
152 :func:`time.gmtime` and :func:`time.localtime`, otherwise the current time is
155 Optional *localtime* is a flag that when ``True``, interprets *timeval*, and
162 needed for some protocols (such as HTTP). This only applies when *localtime* is
/external/linux-kselftest/tools/testing/selftests/timers/
Dthreadtest.c163 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&start)); in main()
176 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&now)); in main()
/external/icu/icu4c/source/test/compat/
Dtzdate.c117 ts = *localtime(&now); in getSystemCurrentTime()
128 ts = *localtime(&now); in getSystemCurrentTime()
/external/python/cpython2/Doc/library/
Dtime.rst79 * The time value as returned by :func:`gmtime`, :func:`localtime`, and
82 values of :func:`gmtime`, :func:`localtime`, and :func:`strptime` also offer
99 | seconds since the epoch | :class:`struct_time` in | :func:`localtime` |
130 :func:`gmtime` or :func:`localtime` to a 24-character string of the following
132 as returned by :func:`localtime` is used. Locale information is not used by
166 ``asctime(localtime(secs))``. Locale information is not used by :func:`ctime`.
196 .. function:: localtime([secs])
211 This is the inverse function of :func:`localtime`. Its argument is the
235 :func:`gmtime` or :func:`localtime` to a string as specified by the *format*
237 :func:`localtime` is used. *format* must be a string. :exc:`ValueError` is
[all …]
/external/llvm-project/libcxx/include/
Dctime40 tm* localtime(const time_t* timer);
86 using ::localtime;

12345678910>>...14