ymd_hms() and friends

{lubridate} functions:

  • ymd_hms() = “year month day hour minute second”
  • Rearrange for other options
  • Leave off _hms & tz for just date
ymd_hms("2017-01-31 20:11:59")
## [1] "2017-01-31 20:11:59 UTC"