Skip to content
Snippets Groups Projects
Commit 8c9994e4 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 777c4b1b
No related branches found
No related tags found
No related merge requests found
......@@ -182,12 +182,9 @@ class OpsCloudPhase(AMVFiles):
def get_datetime(self, pathname):
fname = os.path.split(pathname)[1]
toks = fname.split('_')
dstr = toks[4]
tstr = toks[5]
dtstr = dstr + tstr
dto = datetime.datetime.strptime(dtstr, '%Y%j%H%M').replace(tzinfo=timezone.utc)
return dto
dtstr = toks[3]
dtstr = dtstr[:-3]
dto = datetime.datetime.strptime(dtstr, 's%Y%j%H%M').replace(tzinfo=timezone.utc)
class OPS(AMVFiles):
......
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