Why timestamps are hard in incident response
A single intrusion can leave traces in Windows event logs, Active Directory, browser databases, a Linux audit log and a cloud service. Each may record the same second in a different unit, from a different starting point, in a different time zone. An investigator has to bring them onto one timeline before the order of events means anything. An error of one hour can make a cause look like a consequence.
A numeric timestamp has two properties: its epoch, which is the moment it counts from, and its unit. Identify both and the conversion is arithmetic.
Formats this converter supports
| Format | Epoch | Unit | Where you find it |
|---|---|---|---|
| Unix | 1970-01-01 | s, ms, µs or ns | Linux, network devices, APIs, Firefox |
| FILETIME | 1601-01-01 | 100 ns | NTFS, registry, prefetch, event logs |
| AD / LDAP | 1601-01-01 | 100 ns | lastLogon, pwdLastSet, accountExpires |
| Chrome / WebKit | 1601-01-01 | 1 µs | Chromium history, cookies and downloads |
| Cocoa / Core Data | 2001-01-01 | 1 s, or ns | macOS and iOS databases, Safari history |
| ISO 8601 / RFC 3339 | Calendar date | Text | Cloud audit logs, JSON events |
Why Windows counts from 1601
The Gregorian calendar repeats every 400 years. A year divisible by 4 is a leap year, except that a year divisible by 100 is not, unless it is also divisible by 400. One full cycle is 146,097 days, which is exactly 20,871 weeks, so even the days of the week repeat.
The year 1601 began the 400-year cycle that was in progress when Windows NT was designed. Starting there puts the leap day of the cycle's one exceptional century year, 2000, at the very end. Date arithmetic from that point can use whole 400-year, 100-year, 4-year and 1-year blocks without special cases at the start.
FILETIME stores the count of 100-nanosecond intervals in 64 bits. The distance from 1601 to the Unix epoch is 11,644,473,600
seconds, so midnight on January 1, 1970 is FILETIME 116444736000000000. That constant appears in nearly every
conversion script and is worth recognizing.
FILETIME 133801632000000000
/ 10,000,000 = 13,380,163,200 seconds since 1601
- 11,644,473,600 = 1,735,689,600 Unix seconds
= 2025-01-01T00:00:00Z Identifying a timestamp by its digits
For dates in the present era, the number of digits usually gives the format away. Count them before anything else.
| Digits | Likely format | 2025-01-01 00:00:00 UTC |
|---|---|---|
| 9 | Cocoa seconds | 757382400 |
| 10 | Unix seconds | 1735689600 |
| 13 | Unix milliseconds | 1735689600000 |
| 16 | Unix microseconds | 1735689600000000 |
| 17 | Chrome / WebKit microseconds | 13380163200000000 |
| 18 | FILETIME or AD / LDAP | 133801632000000000 |
| 18 | Cocoa nanoseconds | 757382400000000000 |
| 19 | Unix nanoseconds | 1735689600000000000 |
Length is a guide and not proof. Nine digits is also a Unix time between 1973 and 2001. Two formats share 18 digits, and the leading digits separate them: current FILETIME values begin with 13, while Cocoa nanoseconds begin with 7 or 8. The converter checks that the resulting date is plausible and lists any other reading that is. When you know the source, choose the format yourself.
Time zone pitfalls in SIEM correlation
- Local time without an offset. Traditional syslog (RFC 3164) carries no year and no time zone. A SIEM fills both in from configuration, and a wrong setting shifts every event from that source.
- Daylight saving transitions. When clocks go back, one local hour happens twice, and two events can appear reversed. When clocks go forward, an hour does not exist. Local times in logs cannot be ordered reliably across either.
- Event time and ingest time. A SIEM may show when it received an event. Delayed forwarders and offline laptops can make those differ by days. Correlate on the time recorded at the source.
- Display conversion. Consoles often show times in the viewer's zone, so two analysts can read different times from the same event. Agree on UTC for notes, tickets and reports.
- Filesystem differences. NTFS stores times in UTC, while FAT stores local time. Evidence copied from a USB stick may need an offset that the filesystem does not record.
- Clock skew. Conversion cannot fix a wrong clock. Record each system's offset from a trusted source at collection and apply it separately.
Workflow examples
Check when a password was last set
- Copy the raw
pwdLastSetvalue from your directory export. - Paste it and choose AD / LDAP as the input format so your notes carry the right label.
- Copy the ISO 8601 value into the timeline.
-
For logons, remember that
lastLogonis not replicated. Query every domain controller and take the latest value.lastLogonTimestampis replicated but can lag by up to about two weeks.
Build a timeline from mixed logs
- Open Bulk Log Converter and paste lines from each source.
- Leave the format on automatic if sources are mixed, or pick one if they all match.
- Choose Convert All and review the notes for ambiguous values and missing offsets.
- Export text to keep your log with every timestamp rewritten in UTC, or export CSV to sort and filter. Import the original column as text to preserve long values.
Inside a log line, the bulk converter accepts only numbers of typical timestamp length that give a date from 1990 to 2049, because session IDs and phone numbers can look like timestamps. A line that contains nothing but a number is always converted if it is in range. Traditional syslog times are not converted, because the missing year would have to be guessed.
Dates before 1970
Unix timestamps can be negative. The value -86400 is December 31, 1969. Negative values in evidence are often a
sign of corruption, deliberate timestamp manipulation or an uninitialized field, so treat them as a finding to explain.
Dates before 1601 cannot be written as FILETIME and are left blank.
Why does my spreadsheet show the wrong FILETIME value?
Spreadsheets store numbers as 64-bit floating point with about 15 significant digits, so an 18-digit FILETIME loses its last digits when the cell is read as a number. Import the column as text. This converter uses arbitrary-precision integers throughout, so every 100-nanosecond tick is kept.
What happens to times that have no time zone?
They are read as UTC, and the converter says so. A time such as 2026-11-30 21:00:00 without an offset is ambiguous. If the source logged in local time, add the offset, for example 2026-11-30 21:00:00-05:00, to get the correct instant.