Searched refs:tzinfo (Results 1 – 14 of 14) sorted by relevance
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/ |
D | message_types.py | 99 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)
|
D | message_types_test.py | 58 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),
|
D | protobuf_test.py | 267 tzinfo=util.TimeZoneOffset(60)), 284 1970, 1, 1, tzinfo=util.TimeZoneOffset(tz_offset)))
|
D | util.py | 405 class TimeZoneOffset(datetime.tzinfo):
|
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/ |
D | i18n.py | 233 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/ |
D | test_layer2.py | 35 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/ |
D | datetime_utils.py | 7 tzinfo, 34 class _UTC(tzinfo):
|
/external/curl/lib/ |
D | parsedate.c | 96 struct tzinfo { struct 122 static const struct tzinfo tz[]= { 246 const struct tzinfo *what; in checktz()
|
/external/chromium-trace/catapult/third_party/webapp2/tests/ |
D | extras_i18n_test.py | 225 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/ |
D | i18n.rst | 28 :members: store, locale, translations, timezone, tzinfo,
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/manage/ |
D | volume.py | 351 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/ |
D | encoding_test.py | 287 tzinfo=util.TimeZoneOffset(datetime.timedelta(0)))) 369 tzinfo=util.TimeZoneOffset(datetime.timedelta(0))))
|
D | encoding.py | 189 class SpecialTZInfo(datetime.tzinfo): 203 msg.microsecond, SpecialTZInfo(msg.tzinfo.utcoffset(0)))
|
/external/chromium-trace/catapult/third_party/WebOb/docs/ |
D | reference.txt | 419 >>> 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)
|