Example of a PHP class that can manage dates and times in epoch format, and convert between the server's time in UTC and a user's time in their time zone:
To use this class, you can create an instance of it and call the various methods to manage dates and times in epoch format, and convert between the server's time in UTC and a user's time in their time zone: