Lasso Soft Inc. > Home

[ date->asInteger ]

Method

[Date->asInteger] returns the number of seconds from 1/1/1970 to the date/time object as an integer.

  • Syntax
Date Object->asInteger
Examples
  • Beginner

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

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

Code

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

Result

1298289600

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