Lasso Soft Inc. > Home

[Unix_time]

LinkUnix_time
AuthorLubos Voros
CategoryData Type
Version8.x
LicensePublic Domain
Posted11 May 2008
Updated12 May 2008
More by this author...

Description

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).

Sample Usage

GMT zone:
[Variable:'cas'=(UNX_1970: 1210586400)] [$cas]

Local Time zone:
[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.

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

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft