Skip to content
Advertisement

Tag: epoch

Unix epoch time converts to human readable incorrectly with PHP

1630440104 is the Unix epoch time code example. This PHP code outputs it as 2021.08.31 at 23:08:44 which is incorrect. Because the correct output should be 2021.08.31 at 23:01:44. Whatever time code I insert into the above PHP code it returns 08 minutes instead of the actual value. Where have I made a mistake? Answer The mistake is using m

Advertisement