Ticket #490: datetime.patch
| File datetime.patch, 551 bytes (added by thijs, 17 months ago) |
|---|
-
pyamf/util/__init__.py
634 634 if isinstance(d, datetime.date) and not isinstance(d, datetime.datetime): 635 635 d = datetime.datetime.combine(d, datetime.time(0, 0, 0, 0)) 636 636 637 return calendar.timegm(d.utctimetuple()) 637 msec = str(d.microsecond).rjust(6, '0') 638 return float('%s.%s' % (calendar.timegm(d.utctimetuple()), msec)) 638 639 639 640 def get_datetime(secs): 640 641 """
