Skip to content

Commit

Permalink
Update documentation of ymd describing reliance on strptime
Browse files Browse the repository at this point in the history
  Reported in #289
  • Loading branch information
vspinu committed Dec 18, 2014
1 parent 03c6c4c commit cd13b35
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/parse.r
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
##' truncated formats. For example \code{ymd} with \code{truncated = 2} will also
##' parse incomplete dates like \code{2012-06} and \code{2012}.
##'
##' NOTE: \code{ymd} family of functions are based on \code{\link{strptime}}
##' which currently correctly parses "\%y" format, but fails to parse "\%y-\%m"
##' formats.
##' NOTE: \code{ymd} family of functions are based on `parse_date_time` and thus
##' directly drop to internal C parser for numeric months, but use R's
##' `strptime` for alphabetic months. This implies that some of the `strptime`'s
##' limitations are inherited by lubridate's parser. For example truncated
##' formats (like %Y-%b) will not be parsed. Numeric truncated formats (like
##' %Y-%m) are handled correctly by lubridate's C parser.
##'
##' As of version 1.3.0, lubridate's parse functions no longer return a
##' message that displays which format they used to parse their input. You can
Expand Down

0 comments on commit cd13b35

Please sign in to comment.