When I save a file it has a 'Created At' and 'Updated At' Value saved as well. I would like to know HOW these values are saved? Are they saved as an integer representing a number of seconds since 1904? or are they saved as some kind of string data? Also Where are they saved? as part of the file itself or in the desktop file?


The HFS filesystem stores file metadata in a single large file called the "catalog file", with one record for each file or directory. Creation and modification times are stored as 32-bit unsigned integers representing a count of seconds since midnight, January 1, 1904.

(Source: Inside Macintosh: Files)

  • 3
    +1 ... The (in)famous year 2040 problem ...
    – s1lv3r
    Dec 1 '16 at 14:59
  • 3
    This is not just a retrocomputing issue, current HFS+ volumes have a timestamp resolution of 1 second because of compatibility with HFS APIs. In fact MacOS X is upwards compatible with most of the metadata from Classic MacOS like labels and icon positions. Dec 1 '16 at 15:46
  • 3
    One of the reasons apple is working on a new filesystem for the next version of OS X
    – denodster
    Dec 1 '16 at 16:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.