Re: [R] Timezone question

2023-08-17 Thread Bert Gunter
You may also find the package "lutz" to be of interest, although that may be overkill for your needs. (found by an internet search). Cheers, Bert On Thu, Aug 17, 2023 at 1:31 PM Dennis Fisher wrote: > R 4.3.1 > OS X > > Colleagues > > Is there a simple way to determine the timezone offset for

Re: [R] Timezone question

2023-08-17 Thread Marc Schwartz via R-help
Hi Dennis, I believe that it may be as simple as: > format(Sys.time(), "%z") [1] "-0400" Where "%z" returns the offset from UTC as a character vector, and where I am in: > Sys.timezone() [1] "America/New_York" There may be some subtleties, and I would suggest reading the relevant help files f