R: Day of the Year

dayOfYear {timeDate} | R Documentation

## 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.

### Note

With version 2.7 the function has been renamed from `getdayOfYear`.

### See Also

`dayOfWeek`

### Examples

    ## timeCalendat -
       tC = timeCalendar()

    ## The days of the Year:
       dayOfYear(tC)

    ## Use Deprecated Function:
       getDayOfYear <- dayOfYear
       getDayOfYear(tC)

[Package timeDate version 3012.100 Index]