isInSession() |
Previous Top Next |
isInSession()
This function compares the current clock time to the start and end times of the eSignal Time Template that you have applied to your chart. It returns true if the current clock time is within the start and end times of your Time Template, otherwise it returns false. If you use a 24-hour Time Template, this function will always return true.
Parameters
none |
function takes no parameters |
Usage
function main() {
...
...
if ( isInSession() == false ) {
//clear the Formula Output Window
debugClear();
//print a line of text to that window
debugPrint( "We are currently outside of the session as specified by your current Time Template."\n" );
}
}