Skip to contents

Convert a solar_time object into solar_date object

Usage

as.solar_date(x, time)

Arguments

x

solar_time object.

time

an R date time object that provides the date part.

Value

An object of class "solar.date" object derived from POSIXct. This is needed only for unambiguous formatting and printing.

Details

Objects of class "solar_time" lack date information, it describes the time since local astronomical or true midnight. This function adds the date information from the argument passed to time time assembling a modified time object of class "solar_date".

See also

Other Local solar time functions: is.solar_time(), print.solar_time(), solar_time()