[Unix_time]

Description

Link: [Unix_time]
Author: Lubos Voros
Category: Data Type
Version: 8.x
License: Public Domain
Posted: May. 11, 2008
Updated: May. 12, 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).

Parameters

-numberDays integer, required

Sample Usage

GMT zone:<br />
[Variable:'cas'=(UNX_1970: 1210586400)] [$cas]

<br /><br />Local Time zone:<br />
[Date_GMTtoLocal: ($cas), -GMT]
						

Source Code

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;

 

Related Tags



Comments

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net