Timestamp di oggi a mezzanotte
Trova il timestamp Unix di oggi alle 00:00:00 UTC, più punti di riferimento vicini come ieri, domani, questa settimana, questo mese e quest'anno.
Today at 00:00 UTC
Today midnight is the start of the current UTC day. Developers use this timestamp for log filters, analytics windows, cache keys, reporting jobs, and date-range API queries.
Seconds vs milliseconds
Use the seconds value for Unix shells, Python, PHP, Go, Rust, Ruby, and SQL. Use the milliseconds value when you are passing the timestamp into JavaScript Date, browser APIs, Java, or .NET.
Common uses for today's midnight
Today midnight UTC is a clean lower boundary for daily work because it does not depend on the server's local timezone. Copy it when you need to filter logs since the start of the UTC day, build analytics windows, reset daily counters, or generate repeatable test data for date-sensitive code.
- Use todayMidnight <= eventTime and eventTime < tomorrowMidnight for a full UTC day
- Use the millisecond value for JavaScript Date, browser storage, and frontend charts
- Use the second value for shell commands, Python scripts, and SQL integer columns
- Convert the boundary first if your product defines a day in a local business timezone
Verifying today's boundary
After copying today's midnight timestamp, convert it back to a UTC date before using it in an automated job. The readable value should show the current UTC date at exactly 00:00:00. If it shows your local date at midnight instead, you are checking a local boundary rather than the UTC boundary shown here.