Skip to content

Commit

Permalink
Add example to create_iso8601() about the interplay of .format an…
Browse files Browse the repository at this point in the history
…d `.fmt_c`
  • Loading branch information
ramiromagno committed Nov 22, 2023
1 parent 81336b1 commit e62fc5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/dtc_create_iso8601.R
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,11 @@ format_iso8601 <- function(m, .cutoff_2000 = 68L) {
#' format <- list(c("dd mmm yyyy", "dd mmm yyyyHH:MM"))
#' create_iso8601(datetimes, .format = format, .na = c("UN", "UNK"))
#'
#' # Dates and times may come in many format variations
#' fmt <- "dd MMM yyyy HH nn ss"
#' fmt_cmp <- fmt_cmp(mon = "MMM", min = "nn", sec = "ss")
#' create_iso8601("05 feb 1985 12 55 02", .format = fmt, .fmt_c = fmt_cmp)
#'
#' @export
create_iso8601 <- function(..., .format, .fmt_c = fmt_cmp(), .na = NULL, .cutoff_2000 = 68L, .check_format = FALSE) {

Expand Down
5 changes: 5 additions & 0 deletions man/create_iso8601.Rd

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

0 comments on commit e62fc5f

Please sign in to comment.