Lasso Soft Inc. > Home

[Duration]

[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
  • Parameters
[Duration: 'hh:mm:ss']

[Duration: 'Integer Number of Seconds']

[Duration: -Week=Integer, -Day=Integer, -Hour=Integer, Minute=Integer, Second=Integer]
Optional Parameters
-Week Adds a specified number of weeks to the duration.
-Day Adds a specified number of days to the duration.
-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]
Result:
419:23:47
Tag Link [Duration] Category Date
Type Substitution Data Source Any
Support Preferred Version 6.0
Output Type Duration Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft