Databento epoch timestamp converter
Supports Unix timestamps in seconds, milliseconds, microseconds and nanoseconds.
Epoch time, explained
From the engineers behind market data infrastructure at leading HFT firms.
What is epoch time?
The Unix epoch or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds (in ISO 8601: 1970-01-01T00:00:00Z).
Literally speaking, the epoch is Unix time 0 (midnight 1/1/1970), but 'epoch' is often used as a synonym for Unix time.
Formats & limitations
The converter on this page converts timestamps in seconds (10-digit), milliseconds (13-digit) and microseconds (16-digit) to date strings.
Some systems store epoch dates as a signed 32-bit integer, which might cause problems on January 19, 2038. (known as the Year 2038 problem or Y2038).
Date string reference
Date string
Seconds
1 hour
3,600
1 day
86,400
1 week
604,800
1 month (30.44 days)
2,629,743
1 year (365.24 days)
31,556,926
21:19:55
Milliseconds
1781299195676
Seconds
1781299195
Developer cheatsheet
Quick references for working with epoch timestamps in your stack.
Python
Get current time
Date to epoch
Epoch to date
C
Get current time
Date to epoch
Epoch to date
C++ (20+)
Get current time
Date to epoch
Epoch to date
Java
Get current time
Date to epoch
Epoch to date
C#
Get current time
Date to epoch
Epoch to date
Rust
Get current time
Date to epoch
Epoch to date
Go
Get current time
Date to epoch
Epoch to date
JavaScript
Get current time
Date to epoch
Epoch to date
R
Get current time
Date to epoch
Epoch to date
MATLAB
Get current time
Date to epoch
Epoch to date
PostgreSQL
Get current time
Date to epoch
Epoch to date
MySQL
Get current time
Date to epoch
Epoch to date
ClickHouse
Get current time
Date to epoch
Epoch to date
SQLite
Get current time
Date to epoch
Epoch to date
Bash/Shell
Get current time
Date to epoch
Epoch to date