Skip to content

Lubridate 1.7.8

Compare
Choose a tag to compare
@vspinu vspinu released this 07 Apr 15:36

NEW FEATURES

  • (breaking) Year and month durations now assume 365.25 days in a year consistently in conversion and constructors. Particularly dyears(1) == years(1) is now TRUE.
  • Format and print methods for 0-length objects are more consistent.
  • New duration constructor dmonths() to complement other duration constructors.
  • duration() constructor now accepts months and years arguments.
  • #629 Added format_ISO8601() methods.
  • #672 Eliminate all partial argument matches
  • #674 as_date() now ignores the tz argument
  • #675 force_tz(), with_tz(), tz<- convert dates to date-times
  • #681 New constants NA_Date_ and NA_POSIXct_ which parallel built-in primitive constants.
  • #681 New constructors Date() and POSIXct() which parallel built-in primitive constructors.
  • #695 Durations can now be compared with numeric vectors.
  • #707 Constructors return 0-length inputs when called with no arguments
  • #713 (breaking) as_datetime() always returns a POSIXct()
  • #717 Common generics are now defined in generics dependency package.
  • #719 Negative Durations are now displayed with leading -.
  • #829 %within% throws more meaningful messages when applied on unsupported classes
  • #831 Changing hour, minute or second of Date object now yields POSIXct.
  • #869 Propagate NAs to all internal components of a Period object

BUG FIXES

  • #682 Fix quarter extraction with small fiscal_starts.
  • #703 leap_year() works with objects supported by year().
  • #778 duration()/period()/make_difftime() work with repeated units
  • c.Period concatenation doesn't fail with empty components.
  • Honor exact = TRUE argument in parse_date_time2, which was so far ignored.