ISODate function

ISODate

ISODate

ISODate

ISODate class

Format

R6Class object.

Returns

Object of R6Class for modelling an ISO Date

Examples

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

References

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com

Super classes

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

Public fields

  • date: date

  • dateType: date type

Methods

Public methods

Method new()

Initializes object

Usage

ISODate$new(xml = NULL, date = NULL, dateType = NULL)

Arguments

  • xml: object of class XMLInternalNode-class

  • date: object of class Date or POSIXt

  • dateType: object of class ISODateType or any character

     value among values returned by `ISODateType$values()`
    

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.

  • Maintainer: Emmanuel Blondel
  • License: MIT + file LICENSE
  • Last published: 2025-01-29