hour {Animal}R Documentation

Convert times to hours

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

date <- Sys.time()
hour.number <- hour(date)
print(hour.number)

[Package Animal version 1.01 Index]