Glossary

Unix Timestamp

A Unix timestamp is the number of seconds elapsed since 1 January 1970 00:00:00 UTC. A universal, timezone-independent format for storing and transmitting moments in time.

Why it is convenient

PHP

time();                    // current Unix timestamp
strtotime('2025-01-01');   // string → timestamp
date('Y-m-d', 1735689600); // timestamp → string

// Carbon (recommended)
Carbon::now()->timestamp;
Carbon::createFromTimestamp(1735689600)->toDateString();

The Year 2038 problem

A 32-bit signed integer overflows on 19 January 2038 at 03:14:07 UTC. In PHP with 64-bit integers — no problem. But in old databases with a TIMESTAMP column (32-bit) — there is one.