unknown timezone name in R strptime/as.POSIXct

前端 未结 5 520
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 04:09

Where can I find a list of all legal time names for R function as.POSIXct?

as.POSIXct(\"1970-01-01\",tz=\"CST\") generates a warning that \

5条回答
  •  不思量自难忘°
    2020-12-06 04:45

    Most R platforms use the time-zone database compiled by David Olson, where the preferred reference is by location. There names are a bit outdated but they will help you get going.

    Find a full list of available time zones (doesn't work on windows):

    OlsonNames()
    

    For folks running windows that OlsonNames() doesn't work: See the full list here.

    Or read up in more detail here http://www.twinsun.com/tz/tz-link.htm

提交回复
热议问题