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-04-13 17:42:30"
format_POSIXct(time)
#> [1] "2025-04-13 17:42:30"