Skip to main content

format_now_only

Function format_now_only 

Source
pub fn format_now_only(
    template: &str,
    timezone_shift_secs: i32,
    programme_start: i64,
    programme_duration: i64,
) -> String
Expand description

Format only “now”-related timestamps in a URL template.

Used for live stream URL processing where only current-time placeholders need substitution. Translated from FormatDateTimeNowOnly().

If programme_start > 0, also processes start/end/duration specifiers.