utils: Utilities for time indexes.

C_utils-timeR Documentation

Utilities for time indexes.

Description

Several small functions to extract information from POSIXct indexes.

Usage

hms(x)
doy(x)
dom(x)
dst(x)
truncDay(x)

Arguments

x

A POSIXct vector.

Value

doy and dom provide the (numeric) day of year and day of month, respectively.

hms gives the numeric value

hour(x)+minute(x)/60+second(x)/3600

dst is +1 if the Daylight Savings Time flag is in force, zero if not, -1 if unknown (DateTimeClasses).

truncDay truncates the POSIXct object towards the day.

Author(s)

Oscar Perpiñán Lamigueiro, Francisco Delgado López.

See Also

as.POSIXct


solaR2 documentation built on April 3, 2025, 6:11 p.m.