as.solar_date: Convert a solar_time object into solar_date object

View source: R/solar-time.r

as.solar_dateR 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()


SunCalcMeeus documentation built on April 4, 2025, 1:43 a.m.