Learn R Programming

timeDate (version 290.83)

dayOfYear: Day of the Year

Description

returns the day of the year from a 'timeDate' object.

Usage

dayOfYear(x)

Arguments

x
an object of class timeDate.

Value

  • returns the day count as integer value starting January, 1st.

See Also

dayOfWeek

Examples

Run this code
## timeCalendat -  
   tC = timeCalendar()
       
## The days of the Year:
   dayOfYear(tC)
   
## Use Deprecated Function:
   getDayOfYear <- dayOfYear
   getDayOfYear(tC)

Run the code above in your browser using DataLab