Lines Matching refs:fromutc
1246 def fromutc(self, dt):
1250 raise TypeError("fromutc() requires a datetime argument")
1256 raise ValueError("fromutc() requires a non-None utcoffset() "
1263 raise ValueError("fromutc() requires a non-None dst() result")
1269 raise ValueError("fromutc(): dt.dst gave inconsistent "
1783 result = tz.fromutc(result)
1995 return tz.fromutc(utc)
2381 def fromutc(self, dt):
2384 raise ValueError("fromutc: dt.tzinfo "
2387 raise TypeError("fromutc() argument must be a datetime instance"
2448 # Now we can explain tz.fromutc(x). Let's assume it's an interesting case
2610 # In any case, it's clear that the default fromutc() is strong enough to handle
2616 # pretty bizarre, and a tzinfo subclass can override fromutc() if it is.