% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{parse_maestro_start_time}
\alias{parse_maestro_start_time}
\title{Resolve a partial \code{@maestroStartTime} string to a concrete POSIXct}
\usage{
parse_maestro_start_time(raw, tz, now = lubridate::now(tzone = tz))
}
\arguments{
\item{raw}{Character string from the tag value.}

\item{tz}{Timezone string.}

\item{now}{\code{POSIXct} reference point (default \code{lubridate::now(tz)}).}
}
\value{
A \code{POSIXct}, or \code{NA} if \code{raw} is \code{NA}/\code{""}.
}
\description{
Accepts four formats:
\itemize{
\item \code{"HH:MM:SS"} — time of day; anchored to today's date.
\item \code{"Mon HH:MM:SS"} — weekday + time; anchored to that weekday of
the current ISO week.
\item \code{"DD HH:MM:SS"} or \code{"DD"} — month-day (+ optional time);
anchored to that day of the current month.
\item Full datetime string — passed through to \code{as.POSIXct()}.
}
}
\details{
Using a recent \code{now} as the reference keeps the anchor close to the
present, so \code{n} in \code{.prev_on_cycle()} stays small.
}
\keyword{internal}
