Force Time as UTC

as.UTC(x, ...)

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

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

# Default S3 method
as.UTC(x, ...)

Arguments

x

a vector of datetime values

...

not used at the moment

Examples

Sys.time()
#> [1] "2024-11-28 12:54:06 UTC"
as.UTC(Sys.time())
#> [1] "2024-11-28 12:54:06 UTC"