Link | c5_unixtimestamp |
Author | Jason Huck |
Category | Date |
Version | 8.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 16 Jan 2006 |
Updated | 16 Jan 2006 |
More by this author... |
Returns the current unix timestamp (milliseconds since Jan 01, 1970 GMT).
[c5_unixtimestamp]
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define_tag( 'unixtimestamp', -namespace='c5_', -description='Returns the current unix timestamp (milliseconds since Jan 01, 1970 GMT).' ); local('startTime') = date('1970-01-01 00:00:00 GMT'); local('out') = date_localtogmt(#startTime)->difference(date, -second); date->dst ? #out -= 3600; return(#out); /define_tag;
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Doesn't work for me in 8.1