🇲🇽 Epoch / Unix timestamp to Mexico City time

Convert a Unix timestamp (seconds since 1 Jan 1970 UTC) into local time in Mexico City (CST) — daylight saving applied for the date of the timestamp.

Right now: 1781980178 = Sat, Jun 20, 2026, 12:29 PM UTC-06:00
Current epoch (seconds) in Mexico City (CST)

Common timestamps in Mexico City

Epoch (seconds)Mexico City local timeNote
0Wed, Dec 31, 1969, 6:00 PM UTC-06:00the Unix epoch
1000000000Sat, Sep 8, 2001, 8:46 PM UTC-05:00one billion seconds
1225789200Tue, Nov 4, 2008, 3:00 AM UTC-06:00Nov 2008 (a DST edge in the US/EU)
1500000000Thu, Jul 13, 2017, 9:40 PM UTC-05:00Jul 2017
1609459200Thu, Dec 31, 2020, 6:00 PM UTC-06:00Jan 1, 2021 UTC

In code

// JavaScript — epoch seconds -> Mexico City
const epoch = 1225789200;
new Date(epoch * 1000).toLocaleString("en-US", {
  timeZone: "America/Mexico_City",
});

// Via the API:
// GET https://tz.wrapper-agency.com/api/v1/tz?from=UTC&to=America%2FMexico_City&epoch=1225789200

Other zones: UTC, New York, Los Angeles, London, Paris.