Lines Matching refs:UTC
8 "MINYEAR", "MAXYEAR", "UTC")
1235 "datetime -> timedelta, positive for east of UTC, negative for west of UTC"
1239 """datetime -> DST offset as timedelta, positive for east of UTC.
1247 "datetime in UTC -> datetime in local time."
1575 """Return the timezone offset as timedelta, positive east of UTC
1576 (negative west of UTC)."""
1587 it mean anything in particular. For example, "GMT", "UTC", "-500",
1601 the UTC offset returned by utcoffset() if applicable, so there's no
1798 """Construct a naive UTC datetime from a POSIX timestamp."""
1809 "Construct a UTC datetime from time.time()."
1914 "Return UTC time tuple compatible with time.gmtime()."
1991 # Convert self to UTC, and attach the new time zone object.
1994 # Convert from UTC to tz's local time.
2015 If self.tzinfo is not None, the UTC offset is also attached, giving
2066 """Return the timezone offset as timedelta positive east of UTC (negative west of
2067 UTC)."""
2078 it mean anything in particular. For example, "GMT", "UTC", "-500",
2092 the UTC offset returned by utcoffset() if applicable, so there's no
2396 return 'UTC'
2407 return (f'UTC{sign}{hours:02d}:{minutes:02d}:{seconds:02d}'
2410 return f'UTC{sign}{hours:02d}:{minutes:02d}:{seconds:02d}'
2411 return f'UTC{sign}{hours:02d}:{minutes:02d}'
2413 UTC = timezone.utc = timezone._create(timedelta(0))
2439 # 3. The naive UTC time corresponding to x is x.n - x.o.
2453 # x is already in UTC.
2488 # mapping from UTC to tz's standard time.
2528 # if z.d = 0, then we have a UTC equivalent, and are also done.
2557 # So z' is UTC-equivalent to x iff z'.d = z.d at this point. If they are equal,
2558 # we've found the UTC-equivalent so are done. In fact, we stop with [7] and
2567 # the end of DST, where there's an hour in UTC with no spelling in a hybrid
2568 # tzinfo class. In US Eastern, that's 5:MM UTC = 0:MM EST = 1:MM EDT. During
2570 # UTC) because the docs insist on that, but 0:MM is taken as being in daylight
2571 # time (4:MM UTC). There is no local time mapping to 5:MM UTC. The local
2574 # UTC hours 5:MM and 6:MM to 1:MM Eastern. The result is ambiguous
2577 # When x = 5:MM UTC is the input to this algorithm, x.o=0, y.o=-5 and y.d=0,
2580 # (correctly) concludes that z' is not UTC-equivalent to x.
2590 # Note again that z' is not UTC-equivalent as far as the hybrid tzinfo class is
2593 # clock repeats an hour" behavior when mapping the "unspellable" UTC hour into
2604 # a region decides to change its base offset from UTC.