This commit is contained in:
Kovid Goyal 2007-12-02 21:15:44 +00:00
parent 698cece292
commit a2b31b1196

View File

@ -229,6 +229,10 @@ class DefaultProfile(object):
@classmethod @classmethod
def strptime(cls, src): def strptime(cls, src):
'''
Take a string and return the date that string represents, in UTC as
an epoch (i.e. number of seconds since Jan 1, 1970)
'''
delta = 0 delta = 0
zone = re.search(r'\s*(\+\d\d\:{0,1}\d\d)', src) zone = re.search(r'\s*(\+\d\d\:{0,1}\d\d)', src)
if zone: if zone: