|
11 | 11 | #' suffix to the input (ns, us, ms, s, m, h, d, w).
|
12 | 12 | #'
|
13 | 13 | #' @inherit label_number return
|
14 |
| -#' @param format For `date_format()` and `time_format()` a date/time format |
| 14 | +#' @param format For `label_date()` and `label_time()` a date/time format |
15 | 15 | #' string using standard POSIX specification. See [strptime()] for details.
|
16 | 16 | #'
|
17 |
| -#' For `date_short()` a character vector of length 4 giving the format |
| 17 | +#' For `label_date_short()` a character vector of length 4 giving the format |
18 | 18 | #' components to use for year, month, day, and hour respectively.
|
19 | 19 | #' @param tz a time zone name, see [timezones()]. Defaults
|
20 | 20 | #' to UTC
|
|
31 | 31 | #'
|
32 | 32 | #' two_months <- date_range("2020-05-01", 60)
|
33 | 33 | #' demo_datetime(two_months)
|
34 |
| -#' demo_datetime(two_months, labels = date_format("%m/%d")) |
35 |
| -#' demo_datetime(two_months, labels = date_format("%e %b", locale = "fr")) |
36 |
| -#' demo_datetime(two_months, labels = date_format("%e %B", locale = "es")) |
| 34 | +#' demo_datetime(two_months, labels = label_date("%m/%d")) |
| 35 | +#' demo_datetime(two_months, labels = label_date("%e %b", locale = "fr")) |
| 36 | +#' demo_datetime(two_months, labels = label_date("%e %B", locale = "es")) |
37 | 37 | #' # ggplot2 provides a short-hand:
|
38 | 38 | #' demo_datetime(two_months, date_labels = "%m/%d")
|
39 | 39 | #'
|
|
0 commit comments