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 with of seconds since midnight, January 1, 1904, GMT.
These timestamps are now outdated, but were also used by Apple iPod's, Palm OS, JMP/JSL datetime and others.
The Mac HFS+ clock has a 'Y2K' problem in 2040 (on February 6, 2040) when it will overflow and start again at 0.
The current Mac timestamp is 3856225078
Enter your Mac timestamp below:
Please note: Modern Macs now use Cocoa Core Data Timestamp or Mac absolute time, using (nano)seconds 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();