为什么 lubridate::ymd_hms 不适用于非常具体的日期时间?

Why does lubridate::ymd_hms not work for a very specific date-time?

我有 POSIXct 格式的日期时间 2019-03-10 02:43:00。请注意以下行为:

lubridate::ymd_hms("2019-03-10 02:43:00",  tz = "America/Los_Angeles")
[1] NA
Warning message:
 1 failed to parse.

lubridate::ymd_hms("2019-03-10 01:59:00",  tz = "America/Los_Angeles")
[1] "2019-03-10 01:59:00 PST"

lubridate::ymd_hms("2019-03-10 03:00:00",  tz = "America/Los_Angeles")
[1] "2019-03-10 03:00:00 PDT"

此日期 02:00 - 02:59 之间的任何时间值都会给出“NA”。

答案是在 US/Pacific 时区的 2019-03-10 更改为 02:00 的夏令时,使这一天的任何时间介于 02:00 - 02:59模棱两可。

编辑:正如 Rui 在评论中指出的那样,三月的第二个星期日是正式切换到 daylight savings in the US.

我发帖是希望其他人发现这对故障排除有用。