Skip to main content

Module timestamp

Module timestamp 

Source
Expand description

Locale-dependent timestamp parsing for MTG Arena log entries.

MTGA log timestamps vary by system locale. This module handles all known formats (11+ locale-dependent variants, epoch milliseconds, .NET ticks, and ISO 8601) and normalizes them to UTC.

Enums§

TimestampError
Error returned when a timestamp cannot be parsed.

Functions§

parse_dotnet_ticks
Parses a .NET ticks value into a UTC datetime.
parse_epoch_millis
Parses a Unix epoch milliseconds value into a UTC datetime.
parse_iso8601
Parses an ISO 8601 datetime string into a UTC datetime.
parse_log_timestamp
Parses a locale-dependent timestamp from an MTGA log entry header.