Start & end Unix
Epoch Bounds
Unix seconds for the start and end of a UTC day, month, and year.
Epoch bounds
Pick a calendar date.
Epoch bounds prints Unix timestamps for the first and last second of a UTC day, the UTC month that contains that day, and the UTC year that contains that day. Pick a calendar date. The page does not decode a single mystery integer from a log line; that job belongs on the Unix timestamp converter. Bounds exist so a query, partition, or cache key can say “everything whose epoch second is greater than or equal to start and less than or equal to end.”
Start second and last second
Day start is 00:00:00 UTC on the picked date, as integer seconds since 1970-01-01 00:00:00 UTC. Day end is 23:59:59 UTC on that date, which is the first second of the next date minus one. The range is inclusive of the last second. Filters written as end exclusive (less than next midnight) should use next day’s start instead of this last-second value, or they will drop events in the final second or double-count if mixed with inclusive code.
Month start is 00:00:00 UTC on day 1 of that month. Month end is 23:59:59 UTC on the last civil day of the month. Year start is 1 January 00:00:00 UTC. Year end is 31 December 23:59:59 UTC. February in a leap year makes the month-end second later by 86400 than in a common year; the year-end second moves by the same extra day. The leap year rule is applied through the JavaScript Date.UTC constructor, not by a handwritten 365 table.
Why a single-instant converter is the wrong tool here
Pasting one epoch into the Unix converter tells you which civil instant that integer is. It does not tell you the other edge of a bucket. Analysts who type “1 January 2026” into a datetime picker and encode once get the start, then guess the end by adding 86400 and missing 23:59:59 versus 00:00:00 off-by-one bugs. This page prints both edges so the guess goes away.
Month and year buckets are worse to guess because month lengths differ. Adding 30 × 86400 to a month start lands in the wrong month often. Adding 365 × 86400 to a year start is wrong in leap years. Reading month-end and year-end here is faster than re-deriving calendar arithmetic in a SQL window.
Frequently asked questions
What Unix values does this page print for a chosen UTC day?
It prints the Unix second at 00:00:00 UTC and at 23:59:59 UTC for that date, plus the same pair for the containing UTC month and UTC year. All six numbers are whole seconds since 1970-01-01 00:00:00 UTC. They are bounds for a range query, not a decode of one mystery log integer.
How is the last second of a month or year defined?
The last second is 23:59:59 UTC on the last civil day of that month or year, equal to the next month’s or year’s start minus one second. Inclusive filters should use that integer as the end. Exclusive filters should use the next bucket’s start and the operator less-than, or the final second will be dropped or double-counted.
Why use bounds instead of converting a single instant?
A single Unix converter tells you what one integer means. It does not give the other edge of a day, month, or year bucket. Guessing the end by adding 86400, 30 days, or 365 days breaks on month length and leap years. This page prints both edges so partition jobs do not invent calendar math.