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 example
AsDate("jan 128")
and AsDate("3.145")
now fail to parseNEW 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" and
AsDateTime
always returns an object of class "POSIXct". If dates
(without times) are supplied to AsDateTime
, they will be parsed by
AsDate
(as done previously), but they now will be coerced to
"POSIXct" using as.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
and AsDateTime
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 in AsDate
(DS-1607)BUG FIXES
AsDate
and AsDateTime
now fail correctly if the supplied vector
of dates is NULL (DS-1607)NEW FEATURES
UpdateAt
now uses AsDateTime
(DS-1451)PeriodNameToDate
now uses AsDate
(DS-1451)AsDate
and AsDateTime
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
return NA
)ParseDateTime
and ParseDates
are now just wrappers
for AsDateTime
and AsDate
, 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
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 notNEW FEATURES
BUG FIXES
AsDateTime
(DS-1575)Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.