Created
December 3, 2024 16:25
-
-
Save slavailn/bcf9f303d5ce657817c5711478bf432c to your computer and use it in GitHub Desktop.
Convert date and time, example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pb.txt <- "2024-08-31 22:42:48" | |
pb.date <- as.POSIXct(pb.txt, tz="America/Los_Angeles") | |
pb.date | |
format(pb.date, tz="UTC",usetz=TRUE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment