Learn R Programming

SunCalcMeeus (version 0.1.2)

as.solar_date: Convert a solar_time object into solar_date object

Description

Convert a solar_time object into solar_date object

Usage

as.solar_date(x, time)

Value

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

Arguments

x

solar_time object.

time

an R date time object that provides the date part.

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()