TimeSpan Class

Detailed Documentation

Example Usage

General

TimeSpan objects are unnamed objects that represent generic time periods to 1-second precision. The time periods may contain calendar (year, month) and/or time [1] (day, hour, minute, second) portions. [2]

Unlike HecTime Class objects:

  • The months and days values may be zero

  • The days value may be arbitrarily large (positive or negative) without impacting the months value

  • The signs of the years and days values may be different. In this case the string representation of the object cannot be specified in a single ISO 8601 Duration string and is represented by two strings (one for the calendar portion and one for the time portion) separated by a comma.