Duration.Seconds

About

Returns a second component of a Duration value.

Syntax

Duration.Seconds(duration as nullable duration) as nullable number  

Arguments

Argument Description
duration The Duration to parse.

Examples

duration1 = Duration.FromText("2.05:55:20")  
duration2 = Duration.FromText("15:50")  
Duration.Days(duration1) equals 2  
Duration.Hours(duration1) equals 5  
Duration.Minutes(duration1) equals 55  
Duration.Seconds(duration1) equals 20  
Duration.Seconds(duration2) equals 0