Home
last modified time | relevance | path

Searched refs:tzinfo (Results 1 – 14 of 14) sorted by relevance

/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dmessage_types.py99 if value.tzinfo is None:
103 time_zone_offset = util.total_seconds(value.tzinfo.utcoffset(value))
106 tz=value.tzinfo)
113 if value.tzinfo is not None:
114 utc_offset = value.tzinfo.utcoffset(value)
117 util.total_seconds(value.tzinfo.utcoffset(value)) / 60)
Dmessage_types_test.py58 datetime.datetime(2033, 2, 4, 11, 22, 10, tzinfo=time_zone))
83 self.assertEqual(datetime.datetime(2033, 2, 4, 11, 6, 40, tzinfo=time_zone),
Dprotobuf_test.py267 tzinfo=util.TimeZoneOffset(60)),
284 1970, 1, 1, tzinfo=util.TimeZoneOffset(tz_offset)))
Dutil.py405 class TimeZoneOffset(datetime.tzinfo):
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
Di18n.py233 tzinfo = None variable in I18n
261 self.tzinfo = pytz.timezone(timezone)
307 if datetime.tzinfo is None:
308 datetime = datetime.replace(tzinfo=pytz.UTC)
310 return self.tzinfo.normalize(datetime.astimezone(self.tzinfo))
320 if datetime.tzinfo is None:
321 datetime = self.tzinfo.localize(datetime)
323 return datetime.astimezone(pytz.UTC).replace(tzinfo=None)
401 kwargs['tzinfo'] = self.tzinfo
431 kwargs['tzinfo'] = self.tzinfo
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/glacier/
Dtest_layer2.py35 from datetime import datetime, tzinfo, timedelta
210 class UTC(tzinfo):
223 self.vault.retrieve_inventory(start_date=datetime(2014, 0o1, 0o1, tzinfo=UTC()),
224 end_date=datetime(2014, 0o1, 0o2, tzinfo=UTC()),
/external/chromium-trace/catapult/third_party/WebOb/webob/
Ddatetime_utils.py7 tzinfo,
34 class _UTC(tzinfo):
/external/curl/lib/
Dparsedate.c96 struct tzinfo { struct
122 static const struct tzinfo tz[]= {
246 const struct tzinfo *what; in checktz()
/external/chromium-trace/catapult/third_party/webapp2/tests/
Dextras_i18n_test.py225 self.assertEqual(i18n.get_i18n().tzinfo.zone, 'UTC')
228 self.assertEqual(i18n.get_i18n().tzinfo.zone, 'America/Chicago')
231 self.assertEqual(i18n.get_i18n().tzinfo.zone, 'America/Sao_Paulo')
239 base = datetime.datetime(2002, 10, 27, 6, 0, 0, tzinfo=pytz.UTC)
256 base = datetime.datetime(2002, 10, 27, 6, 0, 0, tzinfo=pytz.UTC)
/external/chromium-trace/catapult/third_party/webapp2/docs/api/webapp2_extras/
Di18n.rst28 :members: store, locale, translations, timezone, tzinfo,
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/manage/
Dvolume.py351 now = datetime.datetime.now(snaps[0].date.tzinfo)
353 day=now.day, tzinfo=now.tzinfo)
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dencoding_test.py287 tzinfo=util.TimeZoneOffset(datetime.timedelta(0))))
369 tzinfo=util.TimeZoneOffset(datetime.timedelta(0))))
Dencoding.py189 class SpecialTZInfo(datetime.tzinfo):
203 msg.microsecond, SpecialTZInfo(msg.tzinfo.utcoffset(0)))
/external/chromium-trace/catapult/third_party/WebOb/docs/
Dreference.txt419 >>> req.if_modified_since = datetime(2006, 1, 1, 12, 0, tzinfo=UTC)
422 >>> server_modified = datetime(2005, 1, 1, 12, 0, tzinfo=UTC)
749 >>> res.last_modified = datetime(2007, 1, 1, 12, 0, tzinfo=UTC)
975 ... last_modified=datetime(2005, 1, 1, 12, 0, tzinfo=UTC))
977 >>> req.if_modified_since = datetime(2006, 1, 1, 12, 0, tzinfo=UTC)