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] "2026-05-26 14:56:56"
format_POSIXct(time)
#> [1] "2026-05-26 14:56:56"