Skip to contents

This function converts a numeric vector of decimal hours back into POSIXct timestamps, using the first timestamp in profile_datetime as the origin.

Usage

decimal_to_posixct(decimal_hours, profile_datetime, tz = "UTC")

Arguments

decimal_hours

A numeric vector representing time in decimal hours.

profile_datetime

A vector of POSIXct timestamps where the first element serves as the reference origin.

tz

A string specifying the time zone (default is "UTC").

Value

A vector of POSIXct timestamps.