[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.
[Duration: 'hh:mm:ss']
[Duration: 'Integer Number of Seconds']
[Duration: -Week=Integer, -Day=Integer, -Hour=Integer, Minute=Integer, Second=Integer]
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
Tag Link | [Duration] | Category | Date |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | Duration | Security | None |
Implementation | LCAPI | Sets | 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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft