def _get_time(self, timestamp):
     if not timestamp:
         return None
     try:
         secs = timestamp_to_secs(timestamp, seps=' :.-_')
     except ValueError:
         return None
     return secs_to_timestamp(secs, millis=True)
Esempio n. 2
0
 def _get_time(self, timestamp):
     if not timestamp or utils.eq(timestamp, 'N/A'):
         return None
     try:
         secs = utils.timestamp_to_secs(timestamp, seps=' :.-_')
     except ValueError:
         return None
     return utils.secs_to_timestamp(secs, millis=True)
 def _get_time(self, timestamp):
     if not timestamp:
         return None
     try:
         secs = utils.timestamp_to_secs(timestamp, seps=" :.-_")
     except ValueError:
         return None
     return utils.secs_to_timestamp(secs, millis=True)