Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Imports:
vctrs (>= 0.6.5)
Suggests:
covr,
doclisting (>= 0.0.0.9000),
knitr,
magrittr,
pillar,
Expand All @@ -44,4 +45,6 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3.9000
Remotes:
r-lib/doclisting
63 changes: 19 additions & 44 deletions R/date.R
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,10 @@ add_date_duration_time_point <- function(x, n, add_fn) {
#'
#' @description
#' `date_group()` groups by a single component of a date-time, such as month
#' of the year, or day of the month.
#'
#' There are separate help pages for grouping dates and date-times:
#'
#' - [dates (Date)][date-group]
#'
#' - [date-times (POSIXct/POSIXlt)][posixt-group]
#' of the year, or day of the month. It is an S3 generic with built-in
#' methods:
#'
#' `r doclisting::methods_list("date_group")`
#'
#' @inheritParams calendar_group
#'
Expand Down Expand Up @@ -650,11 +647,8 @@ date_leap_year.Date <- function(x) {
#' - `date_round()` rounds up or down depending on what is closer,
#' rounding up on ties.
#'
#' There are separate help pages for rounding dates and date-times:
#'
#' - [dates (Date)][date-rounding]
#'
#' - [date-times (POSIXct/POSIXlt)][posixt-rounding]
#' They are all S3 generics with built-in methods for:
#' `r doclisting::methods_list("date_floor")`
#'
#' These functions round the underlying duration itself, relative to an
#' `origin`. For example, rounding to 15 hours will construct groups of
Expand Down Expand Up @@ -950,13 +944,9 @@ date_month_factor <- function(x, ..., labels = "en", abbreviate = FALSE) {
#'
#' @description
#' `date_format()` formats a date (Date) or date-time (POSIXct/POSIXlt) using
#' a `format` string.
#'
#' There are separate help pages for formatting dates and date-times:
#'
#' - [dates (Date)][date-formatting]
#'
#' - [date-times (POSIXct/POSIXlt)][posixt-formatting]
#' a `format` string. This is an S3 generic with built-in methods for:
#'
#' `r doclisting::methods_list("date_format")`
#'
#' @inheritParams rlang::args_dots_empty
#'
Expand Down Expand Up @@ -1109,12 +1099,9 @@ date_parse <- function(x, ..., format = NULL, locale = clock_locale()) {
#' `date_shift()` shifts `x` to the `target` weekday. You can shift to the next
#' or previous weekday. If `x` is currently on the `target` weekday, you can
#' choose to leave it alone or advance it to the next instance of the `target`.
#'
#' There are separate help pages for shifting dates and date-times:
#'
#' - [dates (Date)][date-shifting]
#'
#' - [date-times (POSIXct/POSIXlt)][posixt-shifting]
#'
#' It is an S3 generic with built-in methods for:
#' `r doclisting::methods_list("date_shift")`
#'
#' @inheritParams time_point_shift
#'
Expand Down Expand Up @@ -1300,12 +1287,8 @@ date_today <- function(zone) {
#' - `date_end()` computes the date at the end of a particular
#' `precision`, such as the "end of the month".
#'
#' There are separate help pages for computing boundaries for dates and
#' date-times:
#'
#' - [dates (Date)][date-boundary]
#'
#' - [date-times (POSIXct/POSIXlt)][posixt-boundary]
#' They are both S3 generics with built-in methods for:
#' `r doclisting::methods_list("date_start")`
#'
#' @inheritParams date_group
#'
Expand Down Expand Up @@ -1412,13 +1395,8 @@ date_end.Date <- function(x, precision, ..., invalid = NULL) {
#'
#' @description
#' `date_seq()` generates a date (Date) or date-time (POSIXct/POSIXlt) sequence.
#'
#' There are separate help pages for generating sequences for dates and
#' date-times:
#'
#' - [dates (Date)][date-sequence]
#'
#' - [date-times (POSIXct/POSIXlt)][posixt-sequence]
#' It is an S3 generic with built-in methods for:
#' `r doclisting::methods_list("date_seq")`
#'
#' @inheritParams rlang::args_dots_empty
#'
Expand Down Expand Up @@ -1903,12 +1881,9 @@ date_spanning_seq.Date <- function(x) {
#'
#' This is suitable for, say, computing the whole number of years or months
#' between two dates, accounting for the day and time of day.
#'
#' There are separate help pages for counting for dates and date-times:
#'
#' - [dates (Date)][date-count-between]
#'
#' - [date-times (POSIXct/POSIXlt)][posixt-count-between]
#'
#' It is an S3 generic with built-in methods for:
#' `r doclisting::methods_list("date_count_between")`
#'
#' @inheritSection calendar_count_between Comparison Direction
#'
Expand Down
2 changes: 1 addition & 1 deletion man/Date-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/as_date_time.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/clock-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions man/clock-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions man/date-and-date-time-boundary.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/date-and-date-time-rounding.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/date-and-date-time-shifting.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/date_build.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/date_count_between.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions man/date_format.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/date_group.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions man/date_seq.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/date_time_build.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/duration-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/iso-year-week-day-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/iso_year_week_day.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/posixt-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/reexports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/time-point-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/weekday-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/year-day-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/year-month-day-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/year-month-weekday-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/year-quarter-day-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/year-week-day-arithmetic.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading