UNIX timestamps and time are converted to each other. UNIX timestamp (UNIX epoch, UNIX time, POSIX time or UNIX timestamp in English) is the number of seconds elapsed since January 1, 1970 (midnight of UTC / GMT), regardless of leap seconds.
UNIX timestamp converter tool supports the mutual conversion of time and UNIX timestamp. Time displays local time (current time zone time) and UTC time. UNIX timestamps support second and millisecond units.
- UNIX timestamp to time: fill in the timestamp to be converted in the timestamp input box. After filling in, select the timestamp unit. Click Convert to convert UNIX timestamp to time.
- Time to UNIX timestamp: fill in the time to be converted in the time input box. The supported time formats are 2022-01-10 19:21:59 and 2022-01-10 19:21:59.123, After filling in, click Convert to convert the time to UNIX timestamp.
Get current timestamp in programming language
Lang | Timestamp |
---|---|
Bash |
|
C |
|
C# |
|
C++ |
|
Dart |
|
Golang |
|
Groovy |
|
Dart |
|
Java |
|
JavaScript |
|
Kotlin |
|
Lua |
|
MySQL |
|
Objective-C |
|
Perl |
|
PHP |
|
Python |
|
Ruby |
|
Rust |
|
Scala |
|
SQLite |
|
TypeScript |
|