mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
This commit is contained in:
parent
698cece292
commit
a2b31b1196
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user