Displays the difference between client and server time in milliseconds. Requires [c5_unixtimestamp], available here.
Parameters
none
Sample Usage
[c5_clockskew]
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(
'clockskew',
-namespace='c5_',
-description='Displays the difference between client and server time in milliseconds.'
);
local('out' = '\
<script language="javascript">
var st = new Date;
var localTime = new Date(Date.UTC(st.getFullYear(), st.getMonth(), st.getDate(), st.getHours(), st.getMinutes(), st.getSeconds()));
document.write((localTime.getTime() / 1000.00) - ' + c5_unixtimestamp + ');
</script>
');
return(@#out);
/define_tag;