hour_dbl: Compute the time of day, in hours, as a double

View source: R/time_categories.R

hour_dblR Documentation

Compute the time of day, in hours, as a double

Description

Compute the time of day, in hours, from a DateTimeClasses object, accounting for the hour of day, the number of minutes passed the hour and the number of seconds passed the minute.

Usage

hour_dbl(time)

Arguments

time

A vector of times, of the class DateTimeClasses.

Value

The function returns a double or vector of doubles which defines/define the time of day, in hours.

Author(s)

Edward Lavender

Examples


hour_dbl(as.POSIXct("2016-01-01 13:01:40"))


edwardlavender/Tools4ETS documentation built on Nov. 29, 2022, 7:41 a.m.