rex.utilities.utilities.parse_timestamp

parse_timestamp(path, time_format='%Y-%m-%d_%H:%M:%S')[source]

extract timestamp with given format from given path

Parameters:
  • path (str) – file path

  • time_format (str, optional) – datetime timestamp format, by default ‘%Y-%m-%d_%H:%M:%S’

Returns:

str – Portion of path that matches given format