Skip to content

Files

Latest commit

 

History

History
32 lines (20 loc) · 371 Bytes

current_date_time.md

File metadata and controls

32 lines (20 loc) · 371 Bytes
layout title permalink
tutorial
Getting Current Date & Time
/current_date_time/

To get current date and time information:

Sys.timezone()
## [1] "America/New_York"

Sys.Date()
## [1] "2015-09-24"

Sys.time()
## [1] "2015-09-24 15:08:57 EDT"

If using the lubridate package:

library(lubridate)

now()
## [1] "2015-09-24 15:08:57 EDT"