as.solar_date {SunCalcMeeus}R Documentation

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)

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".

Value

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

See Also

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


[Package SunCalcMeeus version 0.1.2 Index]