Adjusted the logic for calculating the current time so that it can be controlled using units that humans understand.