parse_maestro_start_time: Resolve a partial '@maestroStartTime' string to a concrete...

View source: R/utils.R

parse_maestro_start_timeR Documentation

Resolve a partial @maestroStartTime string to a concrete POSIXct

Description

Accepts four formats:

  • "HH:MM:SS" — time of day; anchored to today's date.

  • "Mon HH:MM:SS" — weekday + time; anchored to that weekday of the current ISO week.

  • "DD HH:MM:SS" or "DD" — month-day (+ optional time); anchored to that day of the current month.

  • Full datetime string — passed through to as.POSIXct().

Usage

parse_maestro_start_time(raw, tz, now = lubridate::now(tzone = tz))

Arguments

raw

Character string from the tag value.

tz

Timezone string.

now

POSIXct reference point (default lubridate::now(tz)).

Details

Using a recent now as the reference keeps the anchor close to the present, so n in .prev_on_cycle() stays small.

Value

A POSIXct, or NA if raw is NA/"".


maestro documentation built on July 2, 2026, 5:07 p.m.