ttime: Translate Timestamps

View source: R/functions.R

ttimeR Documentation

Translate Timestamps

Description

Translate a vector of timestamps.

Usage

ttime(x, from = "datetime", to = "numeric", tz = "",
      strip.attr = TRUE, format = "%Y-%m-%d")

Arguments

x

numeric

from

character: datetime, numeric or character

to

character: numeric, Date or POSIXct

tz

character

strip.attr

logical: strip attributes; in particular, timezone information

format

character

Details

ttime (‘translate time’) converts timestamps between formats.

Author(s)

Enrico Schumann

See Also

ts_table

Examples

ttime(Sys.Date())
ttime(17397, from = "numeric", to = "Date")

tsdb documentation built on March 7, 2023, 7:31 p.m.

Related to ttime in tsdb...