duration

Methods

Method Reference: duration.seconds

duration: X = seconds (D)

Duration equivalent numeric values in seconds.

X = seconds (D) converts durations in D to the equivalent number of seconds. X is a double array of the same size as D.

Source Code: duration

As a duration method, seconds returns the duration expressed in seconds.

 d = minutes (2) + seconds (30)
d =
  duration

   2.5 min
 seconds (d)
ans = 150