hour: Convert times to hours

Description Arguments Value Author(s) See Also Examples

Description

This function extracts the hour from date objects

Arguments

x

A POSIXt object

Value

hour

Hour (1-24) of the input object

Author(s)

Matti Pastell <matti.pastell@helsinki.fi>

See Also

day, day.string, week, month

Examples

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

Animal documentation built on May 2, 2019, 5:48 p.m.