psqi_to_time_date: PSQI time to POSIX

View source: R/score_psqi.R

psqi_to_time_dateR Documentation

PSQI time to POSIX

Description

PSQI time to POSIX

Usage

psqi_to_time_date(psqi_time, assume = c("bedtime", "waketime"))

Arguments

psqi_time

character time string formatted as 'H', 'H:M', 'Ip', 'I p', 'I:M p', or 'I:Mp'.

assume

For bed times, use 'bedtime'. For wake times, use 'waketime'.

Value

An object of class POSIXct on an arbitrary date.


jflournoy/scorequaltrics documentation built on April 29, 2022, 9:17 p.m.