Package lubridate
holds two functions to convert timezones. According to the help pages:
force_tz
returns a date-time that has the same clock time as x
in the new time zone.
force_tz(time, tzone = "America/Los_Angeles")
with_tz
changes the time zone in which an instant is displayed. The clock time displayed for the instant changes, but the moment of time described remains the same.
with_tz(time, tzone = "America/Los_Angeles")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…