macaron.malware_analyzer package

Subpackages

Submodules

macaron.malware_analyzer.datetime_parser module

This module provides a helper function for safely parsing datetime strings.

macaron.malware_analyzer.datetime_parser.parse_datetime(datetime_str, datetime_format='%Y-%m-%dT%H:%M:%S')

Parse a datetime string and handle errors.

Parameters:
  • datetime_str (str:) – The datetime string to parse.

  • str (datetime_format) – The format to use for parsing the datetime string.

Returns:

The parsed datetime object, or None if parsing failed.

Return type:

datetime | None