convert_date_to_doyhr: Convert a date to a day of year (1-366) with decimal hours

View source: R/convert_date_to_doyhr.R

convert_date_to_doyhrR Documentation

Convert a date to a day of year (1-366) with decimal hours

Description

Inspired by / copied from LakeMetabolizer date2doy

Usage

convert_date_to_doyhr(date)

Arguments

date

A datetime object as POSIXct or POSIXt

Value

Numeric value expressing the date as the number of days, with decimal hours, since 00:00 of December 31 of the preceding year (i.e., January 1st at 00:01 is ~1.01)

Examples

streamMetabolizer:::convert_date_to_doyhr(as.POSIXct("2015-02-03 12:01:00 UTC"))

USGS-R/streamMetabolizer documentation built on Aug. 15, 2023, 7:50 a.m.