Skip to content

Commit 88562d7

Browse files
committed
Crosslink to duration_floor() from as_duration(). Closes #214.
1 parent 88d56f1 commit 88562d7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

R/duration.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,12 @@ vec_cast.clock_duration.clock_duration <- function(x, to, ...) {
272272

273273
#' Convert to a duration
274274
#'
275+
#' @description
275276
#' You generally convert to a duration from either a sys-time or a naive-time.
276277
#' The precision of the input is retained in the returned duration.
277278
#'
279+
#' To round an existing duration to another precision, see [duration_floor()].
280+
#'
278281
#' @param x `[object]`
279282
#'
280283
#' An object to convert to a duration.

man/as_duration.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)