converts Eastern Daylight Saving time (EDT) to Eastern Standard Time (EST)

dst.to.est(x, to.tzone = "EST")

Arguments

x

Date (as.POSIXct)

Value

Helper function to convert EDT to EST date-time fields

Examples

datetime=as.POSIXct(c("2015-05-01 08:00:00","2015-10-15 12:00:00","2015-10-15 5:00:00"))
dst.to.est(datetime)
#> [1] "2015-05-01 07:00:00 EST" "2015-10-15 11:00:00 EST"
#> [3] "2015-10-15 04:00:00 EST"