Learn R Programming

geometa (version 0.8-0)

ISODate: ISODate

Description

ISODate

ISODate

Arguments

Value

Object of R6Class for modelling an ISO Date

Format

R6Class object.

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISODate

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.

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
  md <- ISODate$new()
  md$setDate(ISOdate(2015, 1, 1, 1))
  md$setDateType("publication")
  xml <- md$encode()

Run the code above in your browser using DataLab