I'm implementing an application to check the time a data was created in the database. This date information is created by the native function of php
time()
which generates a value that is written to the database as string
. In this check you have an alert when you go from 72 hours without this information, where I get the value of the string
of the creation and add more the alert hours and check if the value is greater than the time()
current. If greater, it has passed the treatment time. So far everything works normally. What happens and what do I need to deduct from check-in time on weekends, exactly 00:00 on Saturday until 11:59:59.
Would anyone have an idea how I can do this directly through the code? At the moment the only solution I envisioned was creating a pause time in the database with the initial and final values.