navigate.log_files.log_functions.get_folder_date
- navigate.log_files.log_functions.get_folder_date(folder_name: str) → datetime
Get the date from the log folder’s name.
- Parameters:
folder_name (str) – Folder name in the format ‘YYYY-MM-DD-HHMM’.
- Returns:
Date and time parsed from the folder name, or
Falseif parsing fails. The format isYYYY-MM-DD-HHMM, where:YYYY: 4-digit year
MM: 2-digit month (01-12)
DD: 2-digit day (01-31)
HHMM: 4-digit hour and minute (e.g., 1530 for 3:30 PM)
- Return type:
datetime or bool