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).
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.
1
2
3
4
5
6
7
8
9
10
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;