Unix timestamp converts to 1979? It's Apple epoch time
A Unix converter shows 1979 for 311660150.444390 because it is Apple time, counted from 2001. Fix it with +978307200, Terminal, or Bytepliers.
GuideUpdated 6 min read
On this page
You pasted 311660150.444390 into a Unix converter and got Saturday, 17 November 1979. That is wrong, and the converter is not broken. It read the number against the wrong starting date.
A 2011 MacRumors forum thread has this exact case. The poster took the value from the CellLocation table of an iOS Consolidated.db file and doubted the 1979 result. Replies guessed the digits after the decimal point were microseconds. The thread never says what the number actually is.
Why a Unix converter shows 1979 for an Apple timestamp
A timestamp counts time from a starting moment, and different systems pick different ones. Unix counts from 1970-01-01. Apple's date types count from 2001-01-01. NSDate computes time as seconds relative to the first instant of January 1, 2001, GMT. Apple also publishes the gap between the two as a constant: the seconds from 1 January 1970 to the 2001 reference date. That gap is 31 years, 11,323 days, or 978,307,200 seconds.
A Unix converter given an Apple value lands exactly 31 years early. Here that means 17 Nov 1979 instead of 17 Nov 2010, with the same time of day (04:15:50). If your result is wrong by almost exactly 31 years, this is the cause.
The .444390 is not microseconds. Apple's standard unit for dates is a floating-point NSTimeInterval, expressed in seconds, so the fraction is 0.44439 of a second.
Other causes of a "wrong" date, roughly by how often they come up:
- Apple reference time read as Unix. Off by 31 years. This is the case above.
- The wrong unit. Milliseconds, microseconds or nanoseconds read as seconds (or the reverse) give dates in 1970 or in the far future.
- A 1601-based value. Windows file times and browser databases count from 1601, which is 369 years before 1970.
- A spreadsheet serial number. Excel counts days, not seconds.
- A custom format. Some databases store a private epoch. The number alone cannot tell you, so check the schema.
Fix 1: Convert with Terminal (built in)
macOS ships the BSD date command. Add the offset and print the result in UTC:
date -u -r $((311660150 + 978307200))This prints Wed Nov 17 04:15:50 UTC 2010. It only prints, so there is nothing to undo. Drop -u to see your Mac's local time.
date -r takes whole seconds, so leave the .444390 out. It changes the result by less than a second.
Fix 2: Convert in a spreadsheet
In Excel or Google Sheets, put the Apple value in cell A1 and use:
=A1/86400+DATE(2001,1,1)Format the cell as date and time. A custom format such as yyyy-mm-dd hh:mm:ss.000 shows the fraction. The result has no time zone, so read it as UTC. You can fill the formula down a column, which helps with an exported table.
Fix 3: Switch the reading in Bytepliers
Bytepliers has a Unix Timestamp tool with a Numbers picker that sets how a bare number is read. The picker offers Auto (Unix), Unix Seconds, Milliseconds, Microseconds, Nanoseconds, Apple Reference, Windows FILETIME, .NET Ticks and Excel Serial Date.
- Open Bytepliers and press ⌘7 to open Unix Timestamp. You can also pick it in the sidebar under Convert.
- Paste the number into the input field. If the field rejects the decimal part, paste only the whole seconds,
311660150. - Open the Numbers picker and choose Apple Reference.
- Read the result rows: Local, UTC, ISO 8601, Relative, Unix seconds and Unix ms. For this example the UTC row should show 17 Nov 2010 at 04:15:50.
The picker defaults to Auto (Unix). In Auto mode a Could also be row offers other readings of the same number. If the first answer looks wrong, check that row, or set the picker yourself and step through the choices until one gives a plausible date.
The same tool takes ISO 8601 dates, yyyy-MM-dd HH:mm:ss, RFC 2822 and expressions such as now + 90m. Commas, underscores and spaces inside a number are ignored.
Which epoch is my number?
If you do not know where a number came from, compare it with this table (the facts on Apple and Microsoft epochs are in their documentation, linked below).
| Name | Counts from | Unit | Typical source | To get Unix seconds | Bytepliers Numbers choice |
|---|---|---|---|---|---|
| Unix | 1970-01-01 | seconds (also ms, µs, ns) | APIs, logs, JWTs | none needed | Auto (Unix) or a Unix unit |
| Apple / Cocoa / Core Data | 2001-01-01 | seconds with a fraction | NSDate, Core Data, iOS and Mac databases | add 978,307,200 | Apple Reference |
| Windows FILETIME | 1601-01-01 | 100 ns ticks | Windows file times | divide by 10,000,000, subtract 11,644,473,600 | Windows FILETIME |
| .NET Ticks | 0001-01-01 | 100 ns ticks | .NET DateTime.Ticks | divide by 10,000,000, subtract 62,135,596,800 | .NET Ticks |
| Excel serial date | 1899-12-30 (1900 system) | days | spreadsheets | subtract 25,569, multiply by 86,400 | Excel Serial Date |
| WebKit / Chrome | 1601-01-01 | microseconds | browser databases | divide by 1,000,000, subtract 11,644,473,600 | not in the picker |
| HFS+ | 1904-01-01 | seconds | old Mac file system dates | subtract 2,082,844,800 | not in the picker |
For FILETIME, Microsoft defines it as a 64-bit count of 100-nanosecond intervals since January 1, 1601 (UTC). Apple's documentation lists the 1904 and 1970 offsets to its 2001 reference date as constants, which is where the HFS+ figure fits in.
Size is a quick clue (as of November 2026):
- 10 digits starting with 17: current Unix seconds.
- About 9 digits, around 800 million: Apple seconds for a recent date.
- 13 digits: Unix milliseconds.
- About 18 digits: FILETIME or .NET ticks for current dates.
- 5 digits, around 46,000: an Excel serial date for late 2026.
If the date still looks wrong
| Symptom | Likely cause | Fix |
|---|---|---|
| Off by almost exactly 31 years | Apple value read as Unix | Choose Apple Reference, or add 978,307,200 |
| Off by 369 years | 1601 epoch (FILETIME or WebKit) | Choose Windows FILETIME, or use the WebKit arithmetic above |
| January 1970, or far future | Wrong unit | Match the digit count to ms, µs or ns |
| Hour is off | Local vs UTC | Compare against the UTC row |
| "Not a timestamp, date or expression" | Input contains unreadable text | Try a shape like 1700000000 or 2024-05-01T10:00:00Z |
| Fits no epoch | Custom or private format | Check the database schema or the app's docs |
Checklist before you trust the date
- The result is plausible for the device or record it came from.
- You know whether the source stores seconds or a larger unit.
- You compared the UTC row, not only the Local row.
- A second reading (Terminal or the spreadsheet formula) agrees with the first.
If nothing works
If no reading gives a believable date, the value may come from a private format. Ask the vendor of the app that wrote the database, or its developer documentation, which epoch the column uses. For Bytepliers questions, use MacSuite support. Include the number, where it came from, the Numbers setting you tried and the date you expected.
Hi, I'm converting 311660150.444390 from an iOS Consolidated.db CellLocation table.
Unix Timestamp in Bytepliers (Numbers = Auto) shows 17 Nov 1979. I expected about Nov 2010.
I tried Apple Reference and Windows FILETIME. The "Could also be" row showed: (paste it here).
macOS version: (your version). Bytepliers version: (your version).Common questions
Is the part after the decimal point microseconds?
No. In Apple's reference-date format it is a fraction of a second, so .444390 is 0.44439 s. Some replies in the 2011 thread guessed microseconds, but the format does not use them.
Why is the offset 978,307,200 seconds?
From 1970-01-01 to 2001-01-01 is 31 years with 8 leap days: 11,323 days × 86,400 seconds. Apple documents this gap as a constant for Core Foundation and Foundation.
Does this apply to Core Data timestamps in my own app?
Yes. Core Data dates are seconds since the 2001 reference date, so reading one as Unix time gives the same 31-year error. For more ways to convert timestamps, see how to convert a Unix timestamp on Mac.
Where can I read Apple's and Microsoft's definitions?
Apple's Dates and Times archive page explains the 2001 reference date. Microsoft's FILETIME definition covers the 1601 epoch.
Bytepliers is part of MacSuite; the Unix Timestamp tool works during the 7-day free trial, and one license then unlocks every MacSuite app.