The
InSeconds property is used to convert a Duration variable to seconds. You can:
- Find out the number of seconds corresponding to a duration.
- Modify the number of seconds corresponding to a duration.
MyDuration is Duration
MyDuration.InHours = 210
Trace(MyDuration.InSeconds) // 756000
Syntax
Finding the number of seconds corresponding to a Duration variable Hide the details
<Result> = <Duration used>.InSeconds
<Result>: Real
Number of seconds corresponding to the specified duration.
<Duration used>: Duration
Name of the Duration variable to be used.
Modifying the number of seconds corresponding to a Duration variable Hide the details
<Duration used>.InSeconds = <New duration>
<Duration used>: Duration
Name of the Duration variable to be used.
<New duration>: Real
Number of seconds corresponding to the specified duration.