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