Choose the calendar question first
Date and time tools answer different questions that often sound alike. A date difference counts the interval between two calendar dates. An add-days tool moves a date by a whole number of calendar days. A timestamp converter interprets an encoded instant. A weekday or age calculation adds another convention. Choose the page from the quantity you know and the result you need, then keep the input format beside the result.
Calendar days and elapsed time
A calendar-day count follows dates on the stated calendar and includes ordinary weekends and holidays unless the page says otherwise. Elapsed hours or minutes describe a duration on a time scale and may need a time zone and daylight-saving rule. Do not compare a calendar count with an elapsed-hour count without stating the convention. The tools keep these questions separate so a date interval is not mistaken for a working-time schedule.
Leap years and month boundaries
Leap years change the number of days between dates around February. Month lengths also vary, so adding one calendar month is not always the same as adding a fixed number of days. The examples show the boundary behavior explicitly. If a workflow uses billing months, anniversaries, or reporting periods, record whether the rule preserves the day number, clamps to the last day, or counts a fixed duration.
Time zones and timestamps
A timestamp identifies an instant only when its unit and time scale are known. Unix seconds use an epoch and UTC convention. A local clock reading needs a location or offset, and daylight-saving transitions can create repeated or missing local times. Enter the source convention exactly as recorded. The converter does not infer a user’s location or repair an ambiguous timestamp without an explicit rule.
Use a reverse check
After adding or subtracting a date interval, calculate the difference between the original and resulting dates. The returned count should match the signed offset under the same convention. For timestamp work, convert the result back to the original unit and compare the integer value. A reverse check catches swapped start and end fields, a mistaken sign, and a seconds-versus-milliseconds error.
Common date-time mistakes
Frequent errors include treating the start date as day one when the page treats it as day zero, entering milliseconds as seconds, ignoring a UTC suffix, and assuming every month has thirty days. Another mistake is mixing a local date with a UTC instant. Read the field labels and the method text before copying a result into a schedule, report, or data pipeline.
Interpreting a result in context
A correct date calculation still depends on the business or personal rule around it. A deadline may use inclusive counting, a service-level agreement may use elapsed hours, and a subscription may renew by a calendar-month rule. The calculator reports the selected arithmetic. Keep the policy definition, locale, time zone, and source timestamp with the number when the result will be used by someone else.
Related tools for a complete check
Use date difference after an add-days calculation, and use a unit conversion when a source file mixes seconds, milliseconds, or minutes. If a result crosses a daylight-saving change, compare a calendar-date result with an elapsed-time result and retain the time-zone assumption. These paired checks make the arithmetic inspectable without claiming that the page selects a legal or operational deadline.
Choose the time scale before comparing values
A timestamp may be recorded in seconds, milliseconds, or another unit, while a local clock reading also needs a time zone or offset. Convert the scale first and preserve the original representation. A numerically plausible value can still be wrong by a factor of 1,000 or shifted by a time-zone rule.
Frequently asked questions
- Does adding one day always add 24 hours?
- A calendar-day operation moves to the next calendar date. An elapsed-hour operation can differ across daylight-saving transitions or time-zone changes.
- Why does February change the result in some years?
- Leap years add February 29. Date differences and calendar offsets account for that extra date when the selected calendar uses the Gregorian rule.
- Are Unix seconds and Unix milliseconds interchangeable?
- No. Milliseconds are 1,000 times smaller than seconds. The input unit must match the timestamp format before conversion.