Commit 077895cddd905085ed79422fa1398314b20bf976

Authored by Paulo Henrique Junqueira Amorim
1 parent aa9d1fe9

ENH: Date time formated. If tag is seconds

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
invesalius/reader/dicom.py
... ... @@ -1417,9 +1417,9 @@ class Parser():
1417 1417  
1418 1418 def __format_time(self,value):
1419 1419  
1420   - if (len(value.split(".")) == 1):
  1420 + if (len(value.split(".")) == 2):
1421 1421 data = time.gmtime(float(value))
1422   - elif (len(value.split(".")) > 1):
  1422 + elif (len(value.split(".")) > 2):
1423 1423 data = time.strptime(value, "%H.%M.%S")
1424 1424 elif(len(value.split(":")) > 1):
1425 1425 data = time.strptime(value, "%H:%M:%S")
... ...