Hi,
Is there a time trigger that I could set to force the efs to be computed at a specific time?
W
Is there a time trigger that I could set to force the efs to be computed at a specific time?
W
// System Variables..
var LastClose = null;
var nRTTime;
var nRTTimeMin = null;
var vRTTimeMin;
var vRTHour;
var vRTMin;
var vRTSec;
var vHour;
var vMin;
var vSec;
var vDay;
var vMonth;
var vDOW;
var nTime;
var vtDate = "";
function main() {
var vTime = new Date();
vRTHour = vTime.getHours();
vRTMin = vTime.getMinutes();
vRTSec = vTime.getSeconds();
// vDOW = vTime.getDay();
//---------------------------------------------------
// Get Time Variables
vTime = getValue("Time", 0);
vHour = vTime.getHours();
vMin = vTime.getMinutes();
vSec = vTime.getSeconds();
vDay = vTime.getDate();
vMonth = vTime.getMonth() +1;
vDOW = vTime.getDay();
var vYear = vTime.getYear();
var nTimeMin = (vHour*60)+vMin;
nTime = (vHour*100)+vMin;
vRTTimeMin = (vRTHour*60)+vRTMin;
nRTTimeMin = (vRTHour*100)+vRTMin;
nRTTime = (vRTHour*3600)+(vRTMin*60)+vRTSec;
if ( (nRTTimeMin == 1030) ||
(nRTTimeMin == 1130) ||
(nRTTimeMin == 1230) ||
(nRTTimeMin == 1430) ) {
..run or update your efs logic here.
}
return;
}
// System Variables..
var LastClose = null;
var nRTTime;
var nRTTimeMin = null;
var vRTTimeMin;
var vRTHour;
var vRTMin;
var vRTSec;
var vHour;
var vMin;
var vSec;
var vDay;
var vMonth;
var vDOW;
var nTime;
var vtDate = "";
function main() {
var vTime = new Date();
vRTHour = vTime.getHours();
vRTMin = vTime.getMinutes();
vRTSec = vTime.getSeconds();
// vDOW = vTime.getDay();
//---------------------------------------------------
// Get Time Variables
vTime = getValue("Time", 0);
vHour = vTime.getHours();
vMin = vTime.getMinutes();
vSec = vTime.getSeconds();
vDay = vTime.getDate();
vMonth = vTime.getMonth() +1;
vDOW = vTime.getDay();
nTime = (vHour*100)+vMin;
nRTTimeMin = (vRTHour*100)+vRTMin;
var Time2RunSomething = ( (nRTTimeMin == 1030) ||
(nRTTimeMin == 1130) ||
(nRTTimeMin == 1230) ||
(nRTTimeMin == 1430) );
if (Time2RunSomething) {
.. all of your analysis code here
}
return;
}
Comment