day_of_year {TrenchR} | R Documentation |
Calendar Day from Date
Description
The function converts a date (day, month, year) to Calendar Day (day of year).
Usage
day_of_year(day, format = "%Y-%m-%d")
Arguments
day |
|
format |
|
Value
numeric
Julian day number, 1-366 (e.g. 1 for January 1st).
See Also
Other utility functions:
airpressure_from_elev()
,
azimuth_angle()
,
daylength()
,
dec_angle()
,
solar_noon()
,
temperature conversions
,
zenith_angle()
Examples
day_of_year(day = "2017-04-22",
format = "%Y-%m-%d")
day_of_year(day = "2017-04-22")
day_of_year(day = "04/22/2017",
format = "%m/%d/%Y")
[Package TrenchR version 1.1.1 Index]