For wday()
from lubridate
library, the documentation shows locale = Sys.getlocale("LC_TIME")
argument. As I look further into it, it seems that 1) it is distro/OS dependent and 2) no 'GMT' locale.
- I looked further into it, but it seems that it is distro/OS dependent. Can I just spam the same command in multiple lines with whatever timezone needs to be referenced? For example, in the documentation, it is written as the following:
Sys.setlocale("LC_TIME", "de") # Solaris: details are OS-dependent
Sys.setlocale("LC_TIME", "de_DE") # Many Unix-alikes
Sys.setlocale("LC_TIME", "de_DE.UTF-8") # Linux, macOS, other Unix-alikes
Sys.setlocale("LC_TIME", "de_DE.utf8") # some Linux versions
Sys.setlocale("LC_TIME", "German") # Windows
So does this mean that I would have to use all five options if the code switches machines?
- My intention is something along the lines of
Sys.setlocale("LC_TIME", "GMT")
but I was unable to find a list of timezones for GMT/UTC (also tried lowercase). Is there one? What is GMT's equivalent?