datetime2doy.Rd
This gets around the fact that most functions for calculating Julian Day do not support non-integer days.
datetime2doy(datetime, tz = "UTC")
cf2doy(value, unit, tz = "UTC")
Numeric Julian date
datetime2doy("2010-01-01") # 1
#> [1] 1
datetime2doy("2010-01-01 12:00:00") # 1.5
#> [1] 1.5
cf2doy(0, "days since 2007-01-01")
#> [1] 1
cf2doy(5, "days since 2010-01-01") # 6
#> [1] 6
cf2doy(5, "days since 2010-01-01") # 6
#> [1] 6