From 763a01d2e8d0c61ea9cc2eb14aa22e8be3087dd8 Mon Sep 17 00:00:00 2001 From: mef Date: Mon, 5 Jun 2023 12:25:59 +0000 Subject: [PATCH] (time/R-lubridate) Updated 1.7.10 to 1.9.2 Version 1.9.2 ============= ### BUG FIXES * [#1104](https://github.com/tidyverse/lubridate/issues/1104) Fix incorrect parsing of months when %a format is present. ### OTHER * Adapt to internal name changes in R-devel Version 1.9.1 ============= ### NEW FEATURES * `as_datetime()` accepts multiple formats in format argument, just like `as_date()` does. ### BUG FIXES * [#1091](https://github.com/tidyverse/lubridate/issues/1091) Fix formatting of numeric inputs to parse_date_time. * [#1092](https://github.com/tidyverse/lubridate/issues/1092) Fix regression in `ymd_hm` on locales where `p` format is not defined. * [#1097](https://github.com/tidyverse/lubridate/issues/1097) Fix `as_date("character")` to work correctly with formats that include extra characters. * [#1098](https://github.com/tidyverse/lubridate/issues/1098) Roll over the month boundary in `make_dateime()` when units exceed their maximal values. * [#1090](https://github.com/tidyverse/lubridate/issues/1090) timechange has been moved from Depends to Imports. Version 1.9.0 ============= ### NEW FEATURES * `roll` argument to updating and time-zone manipulation functions is deprecated in favor of a new `roll_dst` parameter. * [#1042](https://github.com/tidyverse/lubridate/issues/1042) `as_date` with character inputs accepts multiple formats in `format` argument. When `format` is supplied, the input string is parsed with `parse_date_time` instead of the old `strptime`. * [#1055](https://github.com/tidyverse/lubridate/issues/1055) Implement `as.integer` method for Duration, Period and Interval classes. * [#1061](https://github.com/tidyverse/lubridate/issues/1061) Make `year<-`, `month<-` etc. accessors truly generic. In order to make them work with arbitrary class XYZ, it's enough to define a `reclass_date.XYZ` method. * [#1061](https://github.com/tidyverse/lubridate/issues/1061) Add support for `year<-`, `month<-` etc. accessors for `data.table`'s IDate and ITime objects. * [#1017](https://github.com/tidyverse/lubridate/issues/1017) `week_start` argument in all lubridate functions now accepts full and abbreviated names of the days of the week. * The assignment value `wday<-` can be a string either in English or as provided by the current locale. * Date rounding functions accept a date-time `unit` argument for rounding to a vector of date-times. * [#1005](https://github.com/tidyverse/lubridate/issues/1005) `as.duration` now allows for full roundtrip `duration -> as.character -> as.duration` * [#911](https://github.com/tidyverse/lubridate/issues/911) C parsers treat multiple spaces as one (just like strptime does) * `stamp` gained new argument `exact=FALSE` to indicate whether `orders` argument is an exact strptime formats string or not. * [#1001](https://github.com/tidyverse/lubridate/issues/1001) Add `%within` method with signature (Interval, list), which was documented but not implemented. * [#941](https://github.com/tidyverse/lubridate/issues/941) `format_ISO8601()` gained a new option `usetz="Z"` to format time zones with a "Z" and convert the time to the UTC time zone. * [#931](https://github.com/tidyverse/lubridate/issues/931) Usage of `Period` objects in rounding functions is explicitly documented. ### BUG FIXES * [#1036](https://github.com/tidyverse/lubridate/issues/1036) `%within%` now correctly works with flipped intervals * [#1085](https://github.com/tidyverse/lubridate/issues/1085) `as_datetime()` now preserves the time zone of the POSIXt input. * [#1072](https://github.com/tidyverse/lubridate/issues/1072) Names are now handled correctly when combining multiple Period or Interval objects. * [#1003](https://github.com/tidyverse/lubridate/issues/1003) Correctly handle r and R formats in locales which have no p format * [#1074](https://github.com/tidyverse/lubridate/issues/1074) Fix concatination of named Period, Interval and Duration vectors. * [#1044](https://github.com/tidyverse/lubridate/issues/1044) POSIXlt results returned by `fast_strptime()` and `parse_date_time2()` now have a recycled `isdst` field. * [#1069](https://github.com/tidyverse/lubridate/issues/1069) Internal code handling the addition of period months and years no longer generates partially recycled POSIXlt objects. * Fix rounding of POSIXlt objects * [#1007](https://github.com/tidyverse/lubridate/issues/1007) Internal lubridate formats are no longer propagated to stamp formater. * `train` argument in `parse_date_time` now takes effect. It was previously ignored. * [#1004](https://github.com/tidyverse/lubridate/issues/1004) Fix `c.POSIXct` and `c.Date` on empty single POSIXct and Date vectors. * [#1013](https://github.com/tidyverse/lubridate/issues/1013) Fix c(`POSIXct`,`POSIXlt`) heterogeneous concatenation. * [#1002](https://github.com/tidyverse/lubridate/issues/1002) Parsing only with format `j` now works on numeric inputs. * `stamp()` now correctly errors when no formats could be guessed. * Updating a date with timezone (e.g. `tzs = "UTC"`) now returns a POSIXct. ### INTERNALS * `lubridate` is now relying on `timechange` package for update and time-zone computation. Google's CCTZ code is no longer part of the package. * `lubridate`'s updating logic is now built on top of `timechange` package. * Change implementation of `c.Period`, `c.Duration` and `c.Interval` from S4 to S3. Version 1.8.0 ============= ### NEW FEATURES * [#960](https://github.com/tidyverse/lubridate/issues/960) `c.POSIXct` and `c.Date` can deal with heterogeneous object types (e.g `c(date, datetime)` works as expected) ### BUG FIXES * [#994](https://github.com/tidyverse/lubridate/issues/994) Subtracting two duration or two period objects no longer results in an ambiguous dispatch note. * `c.Date` and `c.POSIXct` correctly deal with empty vectors. * `as_datetime(date, tz=XYZ)` returns the date-time object with HMS set to 00:00:00 in the corresponding `tz` ### CHANGES * [#966](https://github.com/tidyverse/lubridate/pull/966) Lubridate is now built with cpp11 (contribution of @DavisVaughan) --- time/R-lubridate/Makefile | 7 ++++--- time/R-lubridate/distinfo | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/time/R-lubridate/Makefile b/time/R-lubridate/Makefile index b8b0387b4bff..89651645bba4 100644 --- a/time/R-lubridate/Makefile +++ b/time/R-lubridate/Makefile @@ -1,15 +1,16 @@ -# $NetBSD: Makefile,v 1.2 2021/05/30 15:56:22 mef Exp $ +# $NetBSD: Makefile,v 1.3 2023/06/05 12:25:59 mef Exp $ R_PKGNAME= lubridate -R_PKGVER= 1.7.10 +R_PKGVER= 1.9.2 CATEGORIES= time MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Make Dealing with Dates a Little Easier LICENSE= gnu-gpl-v2 OR gnu-gpl-v3 -DEPENDS+= R-stringr>=1.4.0:../../textproc/R-stringr DEPENDS+= R-generics-[0-9]*:../../math/R-generics +DEPENDS+= R-stringr>=1.4.0:../../textproc/R-stringr +DEPENDS+= R-timechange-[0-9]*:../../time/R-timechange USE_LANGUAGES= c c++ diff --git a/time/R-lubridate/distinfo b/time/R-lubridate/distinfo index 20a417f94ea3..7f1af65fc26e 100644 --- a/time/R-lubridate/distinfo +++ b/time/R-lubridate/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.4 2021/10/26 11:24:17 nia Exp $ +$NetBSD: distinfo,v 1.5 2023/06/05 12:25:59 mef Exp $ -BLAKE2s (R/lubridate_1.7.10.tar.gz) = bc327232963a6b062af6107e4fde5d2d868599d51d290ba6d13bb1010824d4e3 -SHA512 (R/lubridate_1.7.10.tar.gz) = 0027ac50e49770bb668e50e2f8bfbbb954ac093885cf71b29b84a341da29189a5bf07af962205df7d05609a876eb6da46b2160ce4686059782758f76a98fc889 -Size (R/lubridate_1.7.10.tar.gz) = 473547 bytes +BLAKE2s (R/lubridate_1.9.2.tar.gz) = 55113011f68293cf394dac8488d0f5dbc7febf12b26da9f4bf196c31f4808148 +SHA512 (R/lubridate_1.9.2.tar.gz) = bc983e5e5ff64f82b6d6af720de88ae80d72ec99ffbfb420672057b591dd8870d2676203dfe6784de6810ac6778bd64035c50ae3127fe356fcb2d89b61a9740b +Size (R/lubridate_1.9.2.tar.gz) = 427200 bytes