[Python-checkins] CVS: python/dist/src/Lib/email Utils.py,1.4,1.5
Barry Warsaw
bwarsaw@users.sourceforge.net
2001年11月09日 09:07:31 -0800
Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv32605
Modified Files:
Utils.py
Log Message:
formatdate(): A better docstring.
Index: Utils.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Utils.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Utils.py 2001年11月09日 16:59:56 1.4
--- Utils.py 2001年11月09日 17:07:28 1.5
***************
*** 107,117 ****
def formatdate(timeval=None, localtime=0):
! """Returns a formatted time as specified by RFC 2822, e.g.:
2001年11月09日 01:08:47 -0000
! Optional timeval if given is a float time as accepted by localtime() or
! gmtime(). Optional localtime is a flag that when true, interprets and
! returns a time relative to the local timezone instead of UTC.
"""
# Note: we cannot use strftime() because that honors the locale and RFC
--- 107,120 ----
def formatdate(timeval=None, localtime=0):
! """Returns a date string as specified by RFC 2822, e.g.:
2001年11月09日 01:08:47 -0000
! Optional timeval if given is a floating point time value as accepted by
! gmtime() and localtime(), otherwise the current time is used.
!
! Optional localtime is a flag that when true, interprets timeval, and
! returns a date relative to the local timezone instead of UTC, properly
! taking daylight savings time into account.
"""
# Note: we cannot use strftime() because that honors the locale and RFC