Skip to content

Commit 7210246

Browse files
committed
Add return value documentation for as_date() and as_date_time()
1 parent 2f3a7ff commit 7210246

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

R/date.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ as.Date.clock_zoned_time <- function(x, ...) {
151151
#'
152152
#' A vector.
153153
#'
154+
#' @return A date with the same length as `x`.
155+
#'
154156
#' @export
155157
#' @examples
156158
#' x <- date_time_parse("2019-01-01 23:02:03", "America/New_York")

R/posixt.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ as.POSIXlt.clock_zoned_time <- function(x, ...) {
188188
#'
189189
#' A vector.
190190
#'
191+
#' @return A date-time with the same length as `x`.
192+
#'
191193
#' @export
192194
#' @examples
193195
#' x <- as.Date("2019-01-01")

man/as_date.Rd

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

man/as_date_time.Rd

Lines changed: 3 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)