iduedu.snapshot_time

iduedu.snapshot_time(path)[source]

Return the moment an OSM file reflects, from its header, as an aware UTC datetime.

Geofabrik and other replication-based extracts store it as osmosis_replication_timestamp. Returns None when the header carries none.

Raises:
Return type:

datetime | None

Parameters:

path (str | PathLike)