Home      Ask a Question      My Stuff      Help   
  
TimeWorks: Scripting - Alternative to a Tomorrow Rule Script (Non-Existent)
Customers have asked if there is a rule or script that will, if an employee's work hours span more than a day or in other words their hours cross midnight that rule/script will split it at midnight and add the time after midnight to the following day on their time card. We call it the "Tomorrow Rule" just because it comes up so much. BUT, this rule does not exist in the TimeWorks system.

The system will always match the out punch to the same day that the in punch is made.

The system designates the dates of punches in this fashion:

If there is an in punch on 2/1/08 at 11:00pm and an out punch on 2/2/08 4:00am it will pull everything to the day of the in punch.

For it to split hours that span more than a single day you would have to have the employee clock out right at 12:00am and then immediately clock back in and it will generate the in punch on to the next day. Of course this is probably not an option for most.

We can though create ON THE SAME DAY as the initial in punch another line showing the hours that were worked after midnight by scripting a split for midnight like below:

split (12:00am);

The only draw back is the system will split the times but organize the lines in reverse. It will first show the AM hours before the PM hours. For example if an employee works from 10:00pm on 02/01/08 to 3:00am 02/02/08 with a split at midnight, it will split at midnight but read it like this:

In punch at +12:00am, then an out punch at 3:00am on 02/01/08 then an in punch at 10:00pm then an out punch 11:59pm on the same day. The "+" denotes that it is hours that were worked for the next day. Attached is a graphic of the example:

Split 1200am.doc

ID
216
Category
Training
  FAQ's
Date Created
3/6/2008 11:12:34 AM
Date Updated
8/13/2014 2:58:06 PM
Back to Search Results