Learn R Programming

solrad (version 1.0.0)

DayOfYear: Day of year

Description

This function returns a continuous the day of year value (as integer value 1:365) for a given date-time in "POSIXlt" "POSIXct" format.

Usage

DayOfYear(DateTime)

Arguments

DateTime

DateTime object

Examples

Run this code
# NOT RUN {
#Calculating day of year for now

DayOfYear(Sys.time())

# }

Run the code above in your browser using DataLab