What Is Epoch 1640995200?

Epoch 1640995200 is January 1, 2022, 0:00:00 UTC (Saturday).

Breakdown

The Unix timestamp 1640995200 represents exactly 1.6 billion seconds (18,993 days) after the Unix epoch (January 1, 1970, 00:00:00 UTC). In ISO 8601 format, this is 2022-01-01T00:00:00Z. The timestamp equals 1.641 billion seconds, and in milliseconds it is 1640995200000.

Midnight on January 1, 2022 UTC. The post-pandemic tech boom was in full swing, with cryptocurrency markets, NFTs, and the metaverse dominating tech headlines.

UTCSat, 01 Jan 2022 00:00:00 GMT
ISO 86012022-01-01T00:00:00Z
Day of WeekSaturday
US EasternFriday, December 31, 2021 at 7:00:00 PM EST
Milliseconds1640995200000
Seconds Since Epoch1,640,995,200

Code Examples

Python

from datetime import datetime, timezone

# Convert epoch 1640995200 to UTC datetime
dt = datetime.fromtimestamp(1640995200, tz=timezone.utc)
print(dt)  # 2022-01-01T00:00:00+00:00

# Format as human-readable string
print(dt.strftime("%A, %B %d, %Y %H:%M:%S UTC"))
# Saturday, January 1, 2022, 0:00:00 UTC

JavaScript

// Convert epoch 1640995200 to Date
const date = new Date(1640995200 * 1000);
console.log(date.toISOString());  // 2022-01-01T00:00:00Z
console.log(date.toUTCString());  // Sat, 01 Jan 2022 00:00:00 GMT

// Get individual components
console.log(date.getUTCFullYear());  // 2022
console.log(date.getUTCMonth() + 1); // 1

Go

package main

import (
    "fmt"
    "time"
)

func main() {
    t := time.Unix(1640995200, 0).UTC()
    fmt.Println(t.Format(time.RFC3339)) // 2022-01-01T00:00:00Z
    fmt.Println(t.Weekday())            // Saturday
}

Frequently Asked Questions

How do I convert epoch 1640995200 in Python?

Use datetime.fromtimestamp(1640995200, tz=timezone.utc) from the datetime module. This returns a timezone-aware datetime object representing January 1, 2022, 0:00:00 UTC. For naive datetimes, use datetime.utcfromtimestamp(1640995200), though the timezone-aware version is preferred in modern Python.

What is epoch 1640995200 in milliseconds?

Epoch 1640995200 in milliseconds is 1640995200000. JavaScript, Java, and many APIs use millisecond timestamps. To convert, multiply the seconds-based timestamp by 1000. To go back, divide by 1000 and drop the remainder.

Is epoch 1640995200 in the past or future?

Epoch 1640995200 is in the past. It occurred on January 1, 2022, which was 1,561 days ago.

Try the full Epoch Converter to convert any timestamp instantly.

Related Questions