Skip to content

Commit

Permalink
Add better documentation on timeInput return type (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerga committed Aug 10, 2022
1 parent 4ea4907 commit 20e526a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Replaced outdated shiny utils label functions (#16)
- Added correct timezone handling to roundTime function (#11)
- Add information on timeInput return type (#14)

# shinyTime 1.0.1

Expand Down
6 changes: 5 additions & 1 deletion R/input-time.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
#' @inheritParams shiny::textInput
#' @param value The desired time value. Must be a instance of \code{\link{DateTimeClasses}}.
#' @param seconds Show input for seconds. Defaults to TRUE.
#' @param minute.steps Round time to multiples of \code{minute.steps} (should be a whole number). If not NULL sets \code{seconds} to \code{FALSE}.
#' @param minute.steps Round time to multiples of \code{minute.steps} (should be a whole number).
#' If not NULL sets \code{seconds} to \code{FALSE}.
#'
#' @returns timeInput returns a \code{POSIXlt} object, which can be converted to
#' a \code{POSIXct} object with \code{as.POSIXct} for more efficient storage.
#'
#' @family shinyTime functions
#' @seealso \code{\link{strptime}}, \code{\link{strftime}}, \code{\link{DateTimeClasses}}
Expand Down
7 changes: 6 additions & 1 deletion man/timeInput.Rd

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

0 comments on commit 20e526a

Please sign in to comment.