- Minor fixes to tests due to changes in R-base
- Export
increment()
utility function
- vectors of length 1 are now recycled when adding or subtracting
date_xx
objects, e.g.date_yq(2019, 1) + 1:4
is now possible (#5). qy
can now handle inputs without sepperator between quarter and year (e.g.myfile42019
)as.POSIXlt.date_xx()
andas.POSIXct.date_xx()
now set UTC timezone by default (for compatibility withas.POSIXct.Date()
changes in latest R version)
- Correct a small error in the documentation of
date_xx_arithmetic
that triggers a CRAN Warning since the fixing of https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16223>
- Updated all
scale_date_*()
functions for compatibility with ggplot2 >= 3.2.2
format.date_xx()
now used%V
for isoweeks instead of%W
to prevent confusion withstrftime()
, where%W
denotes UK-weeks. Using%W
has been deprecated and will be removed in future versions.- added
yq()
,qy()
,ym()
,my()
"smart" parsers similar tolubridate::dmy()
& co. as_date_ym()
andas_date_yw()
now handle input vectors that containNAs
(asas_date_yq()
already did)last_of_quarter()
no longer depends on the lubridate package
- added ggplot2 scales for dint data types
- added predicates to check whether dates correspond to the boundaries of
years or quarters (
is_quarter_bounds()
,is_year_bounds()
,is_first_of_quarter()
, etc...) - export methods for
unique
andsummary
that were introduced in the last version but mistakenly not exported - One can now subtract two
date_xx
of the same subclass from each other (the result is aninteger
) - added
as_yearmon()
andas_yearqtr()
for converting to zoo S3 classes - Removed functions that were deprecated with dint 2.0.0
- added
Sys.date_yq()
,Sys.date_ym()
andSys.date_yw()
to get the current quarter, month or isoweek. - lots of small fixes
- breaking: formatting
date_xx
objects now uses placeholders similar tobase::strptime()
(e.g%Y
,%m
,%q
, etc...) instead of presets. The new implementation is also noticeably faster than the old. - breaking: all
first_day_of_*()
andformat_date_y*()
functions now have shorter names:first_of_*()
andformat_y*()
. The original names will still work until the next release but give a deprecation warning. - Added support for
c()
,min()
,max()
,range()
- You can now directly supply a numeric year to
first_of_year()
andlast_of_year()
(e.g.first_of_year(2018)
) - added
date_yw
for storing isoweeks and modified existing functions to accommodate for them. - added
[
method fordate_xx
objects that preserves class attribute when subsetting %y+%
/%y-%
can add/subtract years from date_xx objects- added the predicates,
is_first_of_quarter()
,is_last_of_quarter()
, andis_quarter_bounds()
. seq()
methods now support aby
argument
- First stable version