ConstructDurationString {datarobot}R Documentation

Construct a valid string representing a duration in accordance with ISO8601

Description

A duration of six months, 3 days, and 12 hours could be represented as P6M3DT12H.

Usage

ConstructDurationString(
  years = 0,
  months = 0,
  days = 0,
  hours = 0,
  minutes = 0,
  seconds = 0
)

Arguments

years

integer. The number of years in the duration.

months

integer. The number of months in the duration.

days

integer. The number of days in the duration.

hours

integer. The number of hours in the duration.

minutes

integer. The number of minutes in the duration.

seconds

integer. The number of seconds in the duration.

Value

The duration string, specified compatibly with ISO8601.

Examples

ConstructDurationString()
ConstructDurationString(days = 100)
ConstructDurationString(years = 10, months = 2, days = 5, seconds = 12)

[Package datarobot version 2.18.6 Index]