task_script_utils.datetime_parser.fractional_seconds_formatter module#
- class FractionalSecondsFormatter[source]#
Bases:
FormatterFractionalSecondsFormatter override microseconds token in _PARSE_TOKENS of pendulum.formatting.Formatter so that Formatter.parse() will match and return dict with microsecond as string. This allows us to catch fractional seconds of any number of digits such as ‘000123000’ with leading and trailing zeros intact as microseconds.