Home      Ask a Question      My Stuff      Help   
  
TimeWorksPlus Scripting: Real Time Alerts
The new keyword linetonow now allows the Todays Entries to have alerts based on what time it is currently.

You can use the keyword to find out how long they have been clocked in for:

if(outispresent = false and istimes){
hoursWorked = round(linetonow / 3600, 2);
addalert("Employee has been clocked in for " + hoursWorked + " hours.");
}

You can also use this keyword to find out how long they have been clocked out for:

if(outispresent and istimes){
minutesGone = round(linetonow / 60, 2);
addalert("Employee has been clocked out for " + minutesGone + " minutes.");
}


Be aware that there is a limitation on the "linetonow" rule which is that it can only track up to a span of 18 hours from the point of when you want to start your check.
ID
1393
Category
>Support
  Scripting
Date Created
12/4/2014 9:44:52 AM
Date Updated
2/4/2015 9:11:00 AM
Back to Search Results