Skip to main content

Module template

Module template 

Source
Expand description

Template variable substitution engine for catchup URLs.

Translated from the anonymous namespace functions in CatchupController.cpp:

  • FormatDateTime() — full template processing
  • FormatTime() — single-char time format specifiers ({Y}, {m}, etc.)
  • FormatUnits() — divisible time units ({duration:N}, {offset:N})
  • FormatUtc() — absolute timestamp substitution

Functions§

format_catchup_url
Format a catchup URL template by substituting all time-related placeholders.
format_catchup_url_with_granularity
Format a catchup URL template with granularity clamping.
format_now_only
Format only “now”-related timestamps in a URL template.
is_within_catchup_window
Validate whether a requested catchup time is within the allowed window.