Learn R Programming

tsdb (version 1.1-0)

ttime: 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

Author

Enrico Schumann

Details

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

See Also

ts_table

Examples

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

Run the code above in your browser using DataLab