Lasso Soft Inc. > Home

[ date->asDecimal ]

Method

[Date->asDecimal] returns the number of seconds from 1/1/1970 to the date/time object as a decimal.

  • Syntax
Date Object->asDecimal
Examples
  • Beginner

To return the number of seconds from 1/1/1970 to a date as a decimal:

Use the [Date->asDecimal] method. The following example returns the number of seconds from 1/1/1970 to 2011-02-21 as a decimal.

Code

date('2011-02-21')->asDecimal

Result

1298289600.000000

Recent Comments

No Comments found

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 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft