is_date {arcgisutils} | R Documentation |
Date handling
Description
Esri date fields are represented as milliseconds from the Unix Epoch.
Usage
is_date(x, tz)
date_to_ms(x, tz = "UTC")
from_esri_date(x)
Arguments
x |
an object of class |
tz |
a character string. The time zone specification to be used
for the conversion, if one is required. System-specific (see
time zones), but |
Details
-
is_date()
: checks if an object is aDate
orPOSIXt
class object. -
date_to_ms()
converts a date object to milliseconds from the Unix Epoch in the specified time zone.
Value
-
is_date()
returns a logical scalar -
date_to_ms()
returns a numeric vector of times in milliseconds from the Unix Epoch in the specified time zone.
Examples
today <- Sys.Date()
is_date(today)
date_to_ms(today)