gigl.src.common.utils.is_datetime_str_format_valid#

gigl.src.common.utils.time.is_datetime_str_format_valid(datetime_str: str, datetime_format: str) bool#

Validates a datetime string with specified format. ex “%Y%m%d” for “YYYYmmdd” Return True/False so users can decide to raise error or reformat string

Parameters:
  • datetime_str

  • datetime_format

Returns: