ISODate

ISODate

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Date

References

ISO 19115:2003 - Geographic information -- Metadata

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Public fields

date

date

dateType

date type

Methods

Inherited methods


Method new()

Initializes object

Usage

ISODate$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setDate()

Set date

Usage

ISODate$setDate(date)

Arguments

date

object of class Date or POSIXct


Method setDateType()

Set date type

Usage

ISODate$setDateType(dateType)

Arguments

dateType

object of class ISODateType or any character values returned by ISODateType$values()


Method clone()

The objects of this class are cloneable with this method.

Usage

ISODate$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

  md <- ISODate$new()
  md$setDate(ISOdate(2015, 1, 1, 1))
  md$setDateType("publication")
  xml <- md$encode()
#> [geometa][INFO] Object 'ISODate' is VALID according to ISO 19139 XML schemas!