Skip to content

Instantly share code, notes, and snippets.

@ryanbthomas
Created November 14, 2020 20:18
Show Gist options
  • Save ryanbthomas/69713d6e13dee2c2d01f97b41036be29 to your computer and use it in GitHub Desktop.
Save ryanbthomas/69713d6e13dee2c2d01f97b41036be29 to your computer and use it in GitHub Desktop.
Formatting JSsript dates in R
# my use case was for time in Zulu (or GMT). This is what the Z at the end of the format is doing.
a <- lubridate::now(tzone = "GMT")
a_str <- format(a, format = "%FT%TZ"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment