pyrad.io.find_date_in_file_name#

pyrad.io.find_date_in_file_name(filename, date_format='%Y%m%d%H%M%S')[source]#

Find a date with date format defined in date_format in a file name. If no date is found returns None

Parameters:
  • filename (str) – file name

  • date_format (str) – The time format

Returns:

fdatetime (datetime object) – date and time in file name