Link | Unix_time |
Author | Lubos Voros |
Category | Data Type |
Version | 8.x |
License | Public Domain |
Posted | 11 May 2008 |
Updated | 12 May 2008 |
More by this author... |
Simple modification to Bil Corry "lp_date_date1970" custom tag because this tag not provide support for long Unix time conversion as example: 1210586400 (Mon, 12 May 2008 10:00:00 UTC).
GMT zone:
[Variable:'cas'=(UNX_1970: 1210586400)] [$cas]
Local Time zone:
[Date_GMTtoLocal: ($cas), -GMT]
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:'UNX_1970', -description='Returns a date given the number of days and time since 1/1/1970 00:00:00', -priority='replace', -required='numberDays'; local:'date' = (date:'1/1/1970 00:00:00 GMT'); #date->(add: -second=(integer: #numberDays)); #date->(setformat:'%D GMT'); return: (date: #date); /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft