Home
last modified time | relevance | path

Searched refs:tzlocal (Results 1 – 10 of 10) sorted by relevance

/external/autotest/client/common_lib/
Dtime_utils.py20 import tzlocal
22 tzlocal = None variable
106 @decorators.test_module_available(tzlocal, raise_error=True)
119 local_datetime = datetime_val.replace(tzinfo=tzlocal.get_localzone())
/external/python/dateutil/dateutil/test/
Dtest_tz.py747 @pytest.mark.tzlocal
750 tz1 = tz.tzlocal()
751 tz2 = tz.tzlocal()
758 tzl = tz.tzlocal()
768 tzl = tz.tzlocal()
780 tzl = tz.tzlocal()
786 tzl = tz.tzlocal()
807 @pytest.mark.tzlocal
829 return tz.tzlocal()
848 dt1 = datetime(2015, 2, 1, 12, 0, tzinfo=tz.tzlocal()) # STD
[all …]
Dtest_imports.py109 from dateutil.tz import tzlocal
Dtest_parser.py1037 dt_exp = datetime(2011, 8, 1, 12, 30, tzinfo=tz.tzlocal())
1060 dt_exp = datetime(2011, 11, 6, 1, 30, tzinfo=tz.tzlocal())
/external/python/dateutil/dateutil/tz/
Dtz.py189 class tzlocal(_tzinfo): class
194 super(tzlocal, self).__init__()
291 if isinstance(other, tzlocal):
1402 tzlocal_classes = (tzlocal,)
1456 tz = tzlocal()
1502 tz = tzlocal()
/external/python/dateutil/docs/
Dexamples.rst905 further timezone settings will yield a `tzlocal` timezone.
910 datetime.datetime(2003, 9, 25, 10, 36, 28, tzinfo=tzlocal())
1232 tzlocal examples
1235 .. doctest:: tzlocal
1240 >>> datetime.now(tzlocal())
1242 tzinfo=tzlocal())
1244 >>> datetime.now(tzlocal()).tzname()
1247 >>> datetime.now(tzlocal()).astimezone(tzoffset(None, 0))
/external/autotest/site_utils/deployment/
Dcmdvalidate.py483 timestamp = datetime.datetime.now(dateutil.tz.tzlocal()).isoformat()
/external/python/dateutil/
DNEWS117 - Expand definition of tz.tzlocal equality so that the local zone is allow
590 - Now tz.gettz() returns a tzlocal instance when not given any
/external/python/dateutil/dateutil/parser/
D_parser.py1137 aware = naive.replace(tzinfo=tz.tzlocal())
/external/python/dateutil/dateutil/
Drrule.py24 from .tz import tzutc, tzlocal