ISOPeriodDuration

ISOPeriodDuration

Format

R6Class object.

Value

Object of R6Class for modelling an ISO PeriodDuration

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOPeriodDuration

Public fields

value

value

Methods

Inherited methods


Method new()

Initializes a period duration

Usage

ISOPeriodDuration$new(
  xml = NULL,
  value = NULL,
  years = 0,
  months = 0,
  days = 0,
  hours = 0,
  mins = 0,
  secs = 0,
  start = NULL,
  end = NULL
)

Arguments

xml

object of class XMLInternalNode-class

value

value

years

years

months

months

days

days

hours

hours

mins

mins

secs

secs

start

start position

end

end position


Method setDuration()

Computes period duration

Usage

ISOPeriodDuration$setDuration(
  years = 0,
  months = 0,
  days = 0,
  hours = 0,
  mins = 0,
  secs = 0,
  start = NULL,
  end = NULL
)

Arguments

years

years

months

months

days

days

hours

hours

mins

mins

secs

secs

start

start position

end

end position


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOPeriodDuration$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.