CIRCUITO
CARIOCA TI · DOCUMENTATION
♙
Date converter

Unix Timestamp Converter

Convert Unix timestamps to local date and time or convert a local date/time back to Unix time using IANA time zones, UTC offsets and ISO 8601 output.

Unix TimestampUnix EpochUTCIANA Time ZonesISO 8601RFC 3339

Unix time conversion

Convert integer Unix time in seconds to a civil date/time, or interpret a local civil time in a named IANA time zone and obtain its Unix timestamp.

Integer seconds relative to 1970-01-01 00:00:00 UTC. Negative values represent instants before the epoch when supported by the platform.
Accepted: YYYY-MM-DD HH:MM[:SS] or DD/MM/YYYY HH:MM[:SS]. The selected IANA zone is used to interpret this local civil time.
UNIX EPOCH

What is a Unix timestamp?

Unix time represents an instant using an integer count relative to the Unix Epoch, 1970-01-01 00:00:00 UTC. The familiar timestamp 0 therefore corresponds to the epoch itself. Positive values represent later instants and, on systems that support them, negative values represent instants before the epoch.

TIME ZONE

A Unix timestamp does not carry a local time zone

The timestamp identifies an instant independently of whether it is later displayed in São Paulo, New York, London or Tokyo. A time zone is applied when that instant is converted into civil calendar fields such as year, month, day, hour and UTC offset. This is why one timestamp can produce different local clock readings without representing different instants.

IANA TZDB

Why use America/Sao_Paulo instead of only UTC−03:00?

An IANA time-zone identifier refers to a rule history rather than only a fixed numeric offset. The IANA Time Zone Database records civil-time transitions and is periodically updated when governments change time-zone boundaries or daylight-saving rules. A fixed offset such as UTC−03:00 contains no historical or future transition rules.

UTC · OFFSET · ZONE

UTC, UTC offset and time zone are different concepts

UTC is the reference time scale used for civil-time coordination. An offset such as −03:00 describes a displacement from UTC at a particular instant. A named zone such as America/Sao_Paulo represents a set of civil-time rules that can map different historical instants to different offsets. Treating these three concepts as interchangeable is a common source of date/time bugs.

ISO 8601 · RFC 3339

Timestamp Unix versus a textual Internet date/time

A Unix timestamp is compact and convenient for computation, while ISO 8601-style representations are human-readable and can explicitly include an offset. RFC 3339 defines an Internet date/time profile based on ISO 8601 conventions. An output such as 2026-08-30T11:00:00-03:00 communicates calendar fields and the numeric offset, while the Unix timestamp communicates the instant as a numeric epoch-based value.

DST

Daylight-saving transitions can create missing or repeated local times

When a civil clock moves forward, some local wall-clock times can be skipped. When it moves backward, some local times can occur twice with different UTC offsets. This makes “local date/time → instant” inherently more complicated than “timestamp → local date/time”. For critical scheduling systems, store an instant plus the intended IANA zone and define how ambiguous or nonexistent local times must be handled.

LEAP SECONDS

Unix/POSIX time is not a leap-second counter

The conventional POSIX/Unix model used by typical operating systems and PHP does not represent leap seconds as extra distinct timestamp values in the ordinary time scale. This matters when comparing Unix timestamps with specialized astronomical or precision time scales. For normal web, server, logging and application work, use the platform Unix-time semantics consistently.

2038

The Year 2038 problem depends on the platform integer/time representation

A signed 32-bit time representation reaches its positive limit at 2038-01-19 03:14:07 UTC. Modern 64-bit environments provide a vastly larger range, but software interoperability still requires attention when exchanging timestamps with legacy databases, devices, protocols or 32-bit systems. This calculator validates input against the integer range available to the running PHP environment.

SECONDS OR MILLISECONDS?

10-digit and 13-digit values are often different timestamp units

Traditional Unix timestamps used by this calculator are expressed in seconds. Many JavaScript and API environments also use milliseconds since the epoch, which currently produces values with roughly 13 decimal digits instead of the familiar roughly 10-digit second timestamps. Always confirm the unit before converting or storing an epoch value.

DATABASES & APIs

Store instants and civil-time intent deliberately

For events that already happened, storing an unambiguous instant is usually essential. For future civil schedules — for example, “09:00 every Monday in São Paulo” — the named time zone can also be part of the business meaning because governments can change civil-time rules. Converting every future schedule permanently to a fixed UTC offset can lose that intent.

FAQ

Unix timestamp converter frequently asked questions

What is a Unix timestamp?+

It is an integer time representation relative to the Unix Epoch, 1970-01-01 00:00:00 UTC, under the Unix/POSIX time model used by typical systems.

What date is Unix timestamp 0?+

Timestamp 0 corresponds to 1970-01-01 00:00:00 UTC.

Does a Unix timestamp contain a time zone?+

No. It identifies an instant. A time zone is applied when that instant is rendered as local civil date and time.

Why can the same timestamp show different local times?+

Because the instant is the same but different time zones map it to different local clock readings and UTC offsets.

Why use America/Sao_Paulo instead of UTC-03:00?+

An IANA zone carries civil-time transition history and rules. A fixed UTC offset contains only a numeric displacement and no transition history.

What is the difference between UTC offset and time zone?+

An offset is a numeric difference from UTC at an instant. A named IANA time zone is a rule set that can use different offsets at different historical or future times.

Can Unix timestamps be negative?+

On systems that support pre-epoch values, yes. Negative values represent instants before 1970-01-01 00:00:00 UTC.

Is a Unix timestamp in seconds or milliseconds?+

Traditional Unix timestamps are in seconds. Some platforms and APIs use milliseconds, so the unit must always be confirmed.

Why do JavaScript timestamps often have 13 digits?+

JavaScript Date commonly works with milliseconds since the Unix epoch, whereas traditional Unix timestamps are expressed in seconds.

What is the Year 2038 problem?+

A signed 32-bit time representation reaches its maximum at 2038-01-19 03:14:07 UTC. 64-bit environments provide a much larger timestamp range.

Does Unix time count leap seconds?+

The conventional POSIX/Unix model does not expose leap seconds as extra distinct ordinary timestamp values. Specialized precision time scales can behave differently.

What happens during daylight-saving transitions?+

Some local wall-clock times can be skipped when clocks move forward, and some can occur twice when clocks move backward. This can make local-time-to-timestamp conversion ambiguous.

What is ISO 8601?+

ISO 8601 defines standardized date and time representations. RFC 3339 defines a widely used Internet date/time profile based on ISO 8601 conventions.

Should databases store UTC?+

For recorded instants, an unambiguous UTC-based representation is generally useful. Future recurring civil schedules may also need the intended IANA zone because civil-time rules can change.

Can I convert a Brazilian local time to Unix timestamp?+

Yes. Enter the local date/time and select the appropriate IANA zone such as America/Sao_Paulo, America/Manaus, America/Cuiaba, America/Rio_Branco or America/Noronha.

Is America/Sao_Paulo always exactly UTC-03:00 historically?+

No. Named zones contain historical civil-time transitions. The effective offset depends on the instant and the time-zone database rules available to the system.