Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 372 Bytes

POSIXct.md

File metadata and controls

14 lines (12 loc) · 372 Bytes
Sys.time()
#> [1] "2020-03-03 09:34:12 CET"
Sys.time() + 1:3
#> [1] "2020-03-03 09:34:13 CET" "2020-03-03 09:34:14 CET"
#> [3] "2020-03-03 09:34:15 CET"
as.POSIXct(strptime("2020-03-03 09:29:45", "%F %T"))
#> [1] "2020-03-03 09:29:45 CET"

Sys.time()[NA]
#> [1] NA

Created on 2020-03-03 by the reprex package (v0.3.0)