month: Convert dates to month numbers

Description Arguments Value Author(s) See Also Examples

Description

This function extracts the day of month from date objects

Arguments

x

A POSIXt object

Value

month

Month number of the input object

Author(s)

Matti Pastell <[email protected]>

See Also

day, day.string, hour,week

Examples

1
2
3
date <- Sys.time()
month.number <- month(date)
print(month)

Animal documentation built on May 31, 2017, 3:57 a.m.