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 Date or POSIXt. In the case of is_date(), any R object.

tz

a character string. The time zone specification to be used for the conversion, if one is required. System-specific (see time zones), but "" is the current time zone, and "GMT" is UTC (Universal Time, Coordinated). Invalid values are most commonly treated as UTC, on some platforms with a warning.

Details

Value

Examples


today <- Sys.Date()

is_date(today)

date_to_ms(today)


[Package arcgisutils version 0.3.0 Index]