% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scores_nt_fitbit.R
\name{make_offset}
\alias{make_offset}
\title{Assign sleep-aligned date using time-of-day offset}
\usage{
make_offset(sleep_dataframe, offset = "12:00")
}
\arguments{
\item{sleep_dataframe}{tbl. Data frame with POSIXct timestamp column \code{dtt}.}

\item{offset}{character. Time of day (HH:MM) used as the cutoff for defining
the sleep day. Timestamps occuring after this time are assigned to the next
day.}
}
\value{
tbl. The input data frame with the \code{sleep_date} column.
}
\description{
Assigns a sleep-aligned date (\code{sleep_date}) based on a specified daily
offset time. This is used to shift the day boundary (e.g noon-to-noon) so
that overnight sleep periods are grouped within a single "sleep day" rather
than split across calendar days.
}
\keyword{internal}
