format_time: Format 'POSIXt' for storage

View source: R/teal_slice.R

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


teal.slice documentation built on May 29, 2024, 1:39 a.m.