format_state_timestamp

Documentation for eth_defi.vault.top_vaults_json.format_state_timestamp function.

format_state_timestamp(ts)

Format a naive UTC timestamp for sticky export state.

State files use Z suffixes for readability, while comparisons use naive UTC datetimes internally.

Parameters

ts (datetime.datetime) – Naive UTC datetime.

Returns

ISO 8601 string with Z suffix.

Return type

str