Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4893 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi Guys,

Actually i'm collecting data from a RFID reader and data shows the time in and out of employees. Normally if an employee works on a shift system the time in will be calculated time/date=X and time out will be time/date=Y that is two different dates. for example shift workers will have time in today at 6:00pm and time out tomorrow at 2:00am. can somebody tell me the calculation to get the number of hours worked for this employee or have a better idea how to proceed.

Thanks....... :D

Posted

the time in will be calculated time/date=X

Not sure what "time/date=X" means. If you only have time data, you can use =

EndTime - StartTime + ( EndTime < StartTime ) * 86400 

to calculate the duration. Note that this assumes duration does not exceed 24 hours.

Posted

Hi,

What I mean by time/date=X is:

Date= 01/01/2011(dd/mm/yyyy)

StartTime= 18:00:00

Date= 02/01/2011 (Next day)

EndTime= 03:00:00

As you see the date is different but it should count as 1 day worked and I should be able to get the answer= 9:00:00hrs

Please help!!!!!!!!

Sorry for duplicating the post.

Thanks..

Posted

If you also have a StartDate and EndDate, make the calculation =

Timestamp ( EndDate ; EndTime ) - Timestamp ( StartDate ; StartTime ) 

As Daniele noted, the result type should be Time.

We are assuming here that all four fields are in the same record. If that's not the case we need more information about how your data is organized.

This topic is 4893 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.