IfxTimeSpan constructors

IfxTimeSpan(System.Int64  _ticks)
IfxTimeSpan(System.Decimal _ticks)
The new instance has a range of Day to Fraction5 and is set to a value of _ticks ticks.

There are 10 000 000 ticks in one second.

Ticks are more precise than Fraction5. The extra precision is ignored by all methods and operators.

IfxTimeSpan(System.TimeSpan ts)
The new instance has the same value as ts and a range of Day to Fraction5.
IfxTimeSpan(System.Int32 val, IfxTimeUnit timeUnit)
The new instance has only one time unit and it is set to the value val.

The StartTimeUnit and EndTimeUnit are both set to timeUnit.

  • IfxTimeSpan(System.Int32 val1, System.Int32 val2, IfxTimeUnit start, IfxTimeUnit end)
  • IfxTimeSpan(System.Int32 val1, System.Int32 val2, System.Int32 val3, IfxTimeUnit start, IfxTimeUnit end)
  • IfxTimeSpan(System.Int32 val1, System.Int32 val2, System.Int32 val3, System.Int32 val4, IfxTimeUnit start, IfxTimeUnit end)
  • IfxTimeSpan(System.Int32 val1, System.Int32 val2, System.Int32 val3, System.Int32 val4, System.Int32 val5, IfxTimeUnit end)
If val1 through val5 are given then there is no start parameter because the start time unit is automatically assumed to be Day; otherwise the range of the new instance is start to end. The end time unit is always required because it determines the precision of the fractional portion.

Values must be provided for all units in the range. The val1 parameter is interpreted as the value for the start time unit. The rest of the values are interpreted as the values of the other time units in the range in order.