format_time {teal.slice}R Documentation

Format POSIXt for storage

Description

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

Usage

format_time(x)

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⁠.

Value

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


[Package teal.slice version 0.5.1 Index]