[lp_date_date1970]

Description

Link: [lp_date_date1970]
Author: Bil Corry
Category: Date
Version: 8.x
License: Public Domain
Posted: Dec. 06, 2005
Updated: Jan. 01, 0001
More by this author...
Returns a date given the number of days since 1/1/1970.

Parameters

-numberDays integer, required 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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[

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

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net