to_datetime {linbin}R Documentation

Convert event endpoints to date-times

Description

Convert event endpoints to date-times

Usage

to_datetime(e, tz = "UTC", origin = as.POSIXct("1970-01-01", tz = "UTC"))

Arguments

e

Event table or atomic vector.

tz

Time zone (see timezones).

origin

Date-time object (see as.POSIXct).

Examples

t <- as.POSIXct("1970-01-01", tz = "UTC") + 0:4
e <- events(t)
to_datetime(e)
to_datetime(e$from)

[Package linbin version 0.1.3 Index]