Skip to main content

date_format_custom

Function date_format_custom 

Source
pub fn date_format_custom(ts: i64, fmt: &str) -> String
Expand description

Format an epoch-millisecond timestamp according to a format specification.

Supported format tokens: %Y (4-digit year), %m (2-digit month), %d (2-digit day), %H (2-digit hour), %M (2-digit minute), %S (2-digit second).