Convert a date to a day of year (1-366) with decimal hours
Source:R/convert_date_to_doyhr.R
convert_date_to_doyhr.RdInspired by / copied from LakeMetabolizer date2doy
Value
A number expressing the date as days, including fractional days, since 00:00 on December 31 of the preceding year (that is, January 1 at 00:01 is approximately 1.01).
Examples
streamMetabolizer:::convert_date_to_doyhr(as.POSIXct("2015-02-03 12:01:00 UTC"))
#> [1] 34.50069