Home
last modified time | relevance | path

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

12345678910>>...12

/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/cpython3/Lib/test/
Dtest_time.py150 time.asctime(time.localtime(self.t)))
151 self.assertEqual(int(time.mktime(time.localtime(self.t))),
349 time.gmtime(xmas2002), time.localtime(xmas2002)
353 self.assertEqual(time.localtime(xmas2002).tm_isdst, 0)
358 self.assertNotEqual(time.gmtime(xmas2002), time.localtime(xmas2002))
364 self.assertEqual(time.localtime(xmas2002).tm_isdst, 0)
370 self.assertNotEqual(time.gmtime(xmas2002), time.localtime(xmas2002))
384 self.assertEqual(time.localtime(xmas2002).tm_isdst, 1)
400 for func in time.ctime, time.gmtime, time.localtime:
419 lt0 = time.localtime()
[all …]
/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/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/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/python/cpython3/Lib/email/
Dutils.py126 def formatdate(timeval=None, localtime=False, usegmt=False): argument
146 if localtime or usegmt:
150 if localtime:
339 def localtime(dt=None, isdst=-1): function
362 localtm = time.localtime(seconds)
/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/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/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/swiftshader/third_party/LLVM/lib/Support/Unix/
DTimeValue.inc30 asctime_r(localtime(&ourTime), buffer);
32 ::asctime_r(::localtime(&ourTime), buffer);
/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/autotest/site_utils/
Dgenerate_test_report242 localtime = ''
257 localtime = localtime_
258 return timestamp, localtime
356 timestamp, localtime = self._CollectEndTimes(status_raw, status_re)
360 timestamp, localtime = self._CollectEndTimes(status_raw,
368 'localtime': localtime,
372 'info': self._CollectInfo(testdir, {'localtime': localtime,
/external/linux-kselftest/tools/testing/selftests/timers/
Dthreadtest.c163 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&start)); in main()
175 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&now)); in main()
/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 …]
Demail.util.rst84 .. function:: formatdate([timeval[, localtime][, usegmt]])
91 :func:`time.gmtime` and :func:`time.localtime`, otherwise the current time is
94 Optional *localtime* is a flag that when ``True``, interprets *timeval*, and
101 needed for some protocols (such as HTTP). This only applies when *localtime* is
/external/icu/icu4c/source/test/compat/
Dtzdate.c117 ts = *localtime(&now); in getSystemCurrentTime()
128 ts = *localtime(&now); in getSystemCurrentTime()
/external/pdfium/fxjs/
DJS_Define.cpp26 localtime(&t); in GetLocalTZA()
40 struct tm* tmp = localtime(&t); in GetDaylightSavingTA()
174 struct tm* pTm = localtime(&t); in JS_GetDateTime()

12345678910>>...12