Learn R Programming

teal.slice (version 0.5.1)

format_time: Format POSIXt for storage

Description

Convert POSIXt date time object to character representation in UTC time zone.

Usage

format_time(x)

Value

If x is of class POSIXt, a character vector, otherwise x itself.

Arguments

x

(POSIXt) vector of date time values or anything else

Details

Date times are stored as string representations expressed in the UTC time zone. The storage format is YYYY-MM-DD HH:MM:SS.