Hi, > http://hg.python.org/cpython/rev/5185e1d91f3d > user: Vinay Sajip <[email protected]> > summary: > Refined time test in test_logging.
> +ZERO = datetime.timedelta(0) > + > +class UTC(datetime.tzinfo): > + def utcoffset(self, dt): > + return ZERO > + > + dst = utcoffset > + > + def tzname(self, dt): > + return 'UTC' > + > +utc = UTC() Any reason not to use datetime.datetime.utc here? Regards _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
