Description:
Returns the fraction of time represented by this instance in relation to another.
Syntax:
[TimeSpan Object].FractionOf([TimeSpan Object])
Arguments:
Argument |
Type |
Description |
---|---|---|
Time Span |
TimeSpan |
The time span to compare. |
Returns:
The fraction of time represented by this instance in relation to another.
Examples:
To get the fraction that 12 hours represents in comparison to 24 hours.
Expression |
Result |
---|---|
TimeSpan(12,0,0).FractionOf(TimeSpan(24,0,0)) |
0.5 |