[pk_unixtimestamp]

Description

Link: [pk_unixtimestamp]
Author: Pier Kuipers
Category: Date
Version: 8.x
License: Public Domain
Posted: Mar. 16, 2006
Updated: Jul. 12, 2006
More by this author...
Returns the current unix timestamp, allowing for discrepancies caused by Daylight Saving Time.
Note: Works in LP8.1, but breaks in 8.5 - Use Jason's tag instead: [c5_unixtimestamp].

Parameters

none


Sample Usage

pk_unixtimestamp
						

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
Define_Tag:'unixtimeStamp',
	-namespace = 'pk_',
	-description = 'returns the current unix timestamp, allowing for discrepancies caused by DST';
	local:'DST_diff'=(integer:(date_difference: (date: ((integer:(date)))), (date), -second));
	local:'unixtimeStamp' = ((integer:(date)) - #DST_diff);
	return:#unixtimeStamp;
/Define_Tag;

 

Related Tags



Comments

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net