Lasso Soft Inc. > Home

[pk_unixtimestamp]

Linkpk_unixtimestamp
AuthorPier Kuipers
CategoryDate
Version8.x
LicensePublic Domain
Posted16 Mar 2006
Updated12 Jul 2006
More by this author...

Description

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

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.

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

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