Lasso Soft Inc. > Home

[lp_date_date1970]

Linklp_date_date1970
AuthorBil Corry
CategoryDate
Version8.x
LicensePublic Domain
Posted06 Dec 2005
Updated06 Dec 2005
More by this author...

Description

Returns a date given the number of days since 1/1/1970.

Sample Usage

lp_date_date1970: 13147; // returns 12/30/2005 00:00:00

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:'lp_date_date1970',
	-description='Returns a date given the number of days since 1/1/1970.',
	-priority='replace',
	-required='numberDays';
		
	local:'date' = (date:'1/1/1970 12:00:00');
	#date->(add: -day=(integer: #numberDays));
	#date->(setformat:'%D');
	return: (date: (string:#date) + ' 00:00:00');

/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