Skip to content

Instantly share code, notes, and snippets.

@glamp
Created February 10, 2013 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glamp/4750846 to your computer and use it in GitHub Desktop.
Save glamp/4750846 to your computer and use it in GitHub Desktop.
library(lubridate)
year("2012-12-12")
#[1] 2012
day("2012-12-12")
#[1] 12
ymd("2012-12-12")
#1 parsed with %Y-%m-%d
#[1] "2012-12-12 UTC"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment