Force Time as UTC

as.UTC(x, ...)

# S3 method for data.frame
as.UTC(x, ...)

# S3 method for POSIXct
as.UTC(x, ...)

# S3 method for default
as.UTC(x, ...)

Arguments

x

a vector of datetime values

...

not used at the moment

Examples

Sys.time()
#> [1] "2024-06-24 09:25:56 UTC"
as.UTC(Sys.time())
#> [1] "2024-06-24 09:25:56 UTC"