as_jdate | R Documentation |
jdate
objectA generic function that converts other date/time classes to jdate
.
as_jdate(x, ...)
x |
A vector of |
... |
These dots are for future extensions and must be empty. |
Unlike R's as.Date.POSIXct()
method, as_jdate
does not expose a time zone argument
and uses time zone attribute of input datetime object for conversion.
A vector of jdate
objects with the same length as x.
as_jdate(as.Date("2023-12-12"))
as_jdate(jdatetime("1402-09-21 13:14:00", tzone = "Asia/Tehran"))
as_jdate(as.POSIXct("2023-12-12 13:14:00", tz = "Asia/Tehran"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.