Skip to contents

Converts a POSIXct double timestamp into a character string much faster than format.POSIXct, with the same output as the method default.

Usage

format_POSIXct(x)

Arguments

x

an object of class ‘POSIXct’.

Value

A character string

Examples

time <- Sys.time()
format(time)
#> [1] "2025-03-14 19:11:34"
format_POSIXct(time)
#> [1] "2025-03-14 19:11:34"