Lasso Soft Inc. > Home

[lp_date_days1970]

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

Description

Returns number of days since 1/1/1970.

Sample Usage

lp_date_days1970: (date: '12/30/2005'); // returns 13147

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_days1970',
	-description='Returns number of days since 1/1/1970.',
	-priority='replace',
	-optional='date',-copy,-type='date';
	
	if: !local_defined:'date';
		local:'date' = date;
	/if;
	
	#date->(setformat:'%D');
	return: (date_difference: (date: (string:#date) + ' 12:00:00'), (date:'1/1/1970 12:00:00') ,-day);
/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