Learn R Programming

geometa (version 0.4-0)

ISODate: ISODate

Description

ISODate

Usage

ISODate

Arguments

Value

Object of R6Class for modelling an ISO Date

Format

R6Class object.

Fields

dateType

Methods

new(xml)

This method is used to instantiate an ISODate

setDate(date)

Sets the date

setDateType(dateType)

Sets the date type

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
  md <- ISODate$new()
  d <- ISOBaseDate$new(value = ISOdate(2015, 1, 1, 1))
  md$setDate(d)
  md$setDateType("publication")
  xml <- md$encode()

# }

Run the code above in your browser using DataLab