cu-date | R Documentation |
cu_date_from
turns ClickUp date/time format (Unix time
in milliseconds) to POSIXct()
.
cu_date_to
turns a POSIXct coercible date/time value
back to Unix time.
cu_date_from(ms, tz = NULL, ...)
cu_date_to(dt)
ms |
ClickUp date/time format, Unix time in milliseconds. |
tz |
time zone, when |
... |
Other optional arguments passed to |
dt |
POSIXct coercible date/time value. |
cu_date_from
returns POSIXct()
.
cu_date_to
returns Unix time as character .
cu_options()
to set tz
globally.
## Not run:
task_id <- "8ach57"
due_date <- as.POSIXct("2020-12-24 21:15:49 MDT")
task <- cu_get_task(task_id)
task$due_date
cu_date_to(due_date)
task_up <- cu_update_task("8ach57", due_date=cu_date_to(due_date))
cu_date_from(task_up$due_date)
identical(cu_date_from(task_up$due_date), due_date)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.