- Added
RefreshIfOlderThan
.
AsDateTime
now fully supports the ISO-8601 standard including fractional seconds and time zone offsets. Dates in the format used by Salesforce are now fully supported (DS-1992)
NEW FEATURES
AsDate
gains additional support for parsing period formats without days; e.g."may/2011-jun/2012"
,"10/17-12/17"
,"5 1999-8 2000"
, etc.
NEW FEATURES
AsDate
is now more strict when parsing all formats, for exampleAsDate("jan 128")
andAsDate("3.145")
now fail to parse
NEW FEATURES
AsDate
gains additional support for date ranges/periods for example"July 7, 1998 - Aug 10, 1999"
and"Sep 10 - Jan 11"
NEW FEATURES
AsDate
is now stricter when parsing formats without days. Previously, the function could be too aggressive in certain cases and parse non-date input as dates.AsDate
gains additional support for date ranges/periods with full name, abbreviated name, or numeric months; additional sepators allowed between parts of the date and separating the dates; and support for two or four digit years.AsDate
now always returns an object of class "Date" andAsDateTime
always returns an object of class "POSIXct". If dates (without times) are supplied toAsDateTime
, they will be parsed byAsDate
(as done previously), but they now will be coerced to "POSIXct" usingas.POSIXct
AsDate
supports character month, year formats with month and year separated by "," and arbitrary whitespace (DS-1668)AsDate
allows arbitrary whitespace around the separator in quarterly periods, e.g. "Jan -Feb 10" (DS-1652)
BUG FIXES
AsDate
will now correctly parse quarterly date periods where the start year is different from the end year; e.g. "Dec-May 17" will now parse to have year 2016 instead of 2017 (DS-1652)
NEW FEATURES
AsDate
andAsDateTime
now default to throwing an error if the supplied vector of dates cannot be parsed (DS-1607)PeriodNameToDate
has been deprecated as its functionality is now included inAsDate
(DS-1607)
BUG FIXES
AsDate
andAsDateTime
now fail correctly if the supplied vector of dates is NULL (DS-1607)
NEW FEATURES
UpdateAt
now usesAsDateTime
(DS-1451)PeriodNameToDate
now usesAsDate
(DS-1451)AsDate
andAsDateTime
gain a new argument "on.parse.failure" which allows the user to control what happens if the supplied dates cannot be parsed (error, warning, or silently returnNA
)ParseDateTime
andParseDates
are now just wrappers forAsDateTime
andAsDate
, respectively; and will return the exact same output as calling those functions directly. They are only left in the package for compatibility. (DS-1451)
BUG FIXES
- Some additional formats involving two-digit years are
now correctly parsed by
AsDateTime
(DS-1575) AsDate
now correctly returns all NA values if the first element of the supplied character dates parses in "ym" format, but the rest of the vector does not
NEW FEATURES
- Begin using semantic versioning
BUG FIXES
- Some additional formats involving two-digit years are
now correctly parsed by
AsDateTime
(DS-1575)