This is the clock class, making it easier to use the datetime methods in reference to the rest of the code.
We need a function that can be easily called to clock in/clock out. There should also be a method to find the amount of time spent between two times. For example, how long has it been from 1pm to 5pm. This is needed to calculate total hours spent by a user.
This is the clock class, making it easier to use the datetime methods in reference to the rest of the code.
We need a function that can be easily called to clock in/clock out. There should also be a method to find the amount of time spent between two times. For example, how long has it been from 1pm to 5pm. This is needed to calculate total hours spent by a user.