Skip to content
Snippets Groups Projects
Commit a5a46312 authored by Bryan Tong Minh's avatar Bryan Tong Minh
Browse files

Return timestamp as 6 length tuple

parent a37d157a
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,8 @@ except ImportError: ...@@ -23,8 +23,8 @@ except ImportError:
def parse_timestamp(t): def parse_timestamp(t):
if t == '0000-00-00T00:00:00Z': if t == '0000-00-00T00:00:00Z':
return (0, 0, 0, 0, 0, 0, 0, 0) return (0, 0, 0, 0, 0, 0)
return time.strptime(t, '%Y-%m-%dT%H:%M:%SZ') return time.strptime(t, '%Y-%m-%dT%H:%M:%SZ')[:6]
class WaitToken(object): class WaitToken(object):
def __init__(self): def __init__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment