Convert Mac HFS+ timestamp (seconds since 1904) to human-readable date
This script converts Apple macOS HFS+ timestamps to normal dates.
An HFS Plus timestamp is a 32-bit unsigned integer that counts seconds since midnight, January 1, 1904, GMT.
These timestamps are now outdated, but were also used by Apple iPods, Palm OS, JMP/JSL DateTime, and other systems.
The Mac HFS+ clock has a rollover problem on February 6, 2040, when it will overflow and start again at 0.
The current Mac timestamp is 3867440235
Enter your Mac timestamp below:
Please note: Modern Macs use Cocoa Core Data timestamps or Mac absolute time, using seconds or nanoseconds since 2001.
Programming routines
The difference between the Unix timestamp epoch (1970) and the Mac timestamp epoch (1904) is 2082844800 seconds. Current timestamp in PHP:
$currenttimestamp = 2082844800+time();