LassoScript Utility
Basics Browse Detail

[Duration]

Tag Link [Duration] Category Date
Type Substitution Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type Duration Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[Duration] casts values as a duration data type, which represents a length of time in hours, minutes, and seconds. Accepts a duration string for hh:mm:ss, or an integer number of seconds.

An optional -Week parameter automatically adds a specified number of weeks to the specified duration. Optional -Day, -Hour, -Minute, and -Second parameters may also be used for automatically adding day, hour, minute, and time increments to the specified duration.

Syntax

[Duration: 'hh:mm:ss']

[Duration: 'Integer Number of Seconds']

[Duration: -Week=Integer, -Day=Integer, -Hour=Integer, Minute=Integer, Second=Integer]

Parameters

Optional Parameters
-Week Adds a specified number of weeks to the duration.
-Day Adds a specified number of days to the duration.
\0
-Hour Adds a specified number of hours to the duration.
-Minute Adds a specified number of minutes to the duration.
-Second Adds a specified number of seconds to the duration.

Examples

To cast a duration data type:

This example illustrates casting a duration data type by combining integer numbers of weeks, days, hours, minutes, and seconds.

[Duration: -Week=2, -Day=3, -Hour=11, -Minute=23, -Second=47]

419:23:47