查找工具

↑↓ 选择 Enter 打开

不知道工具名称时,可输入“格式化”或“计数”等任务词。

ISO 8601 Duration Calculator

仅本地处理

ISO 8601 Duration Calculator 用于在浏览器中转换数据或文件,并清楚显示处理结果和限制。 本页包含该工具的实际输入输出、实现边界和一手参考资料。

已审核 · 更新于 · 免费使用 · 无需账号

Duration Workspace

Both inputs use the browser’s current time zone.

Difference

ISO 8601 duration
—
Total days
—
Total hours
—
Milliseconds
—
Date calculations run locally with browser time-zone data.

ISO 8601 Duration Calculator可以处理什么?

ISO 8601 Duration Calculator 用于在浏览器中转换数据或文件,并清楚显示处理结果和限制。 已核对的功能: ISO duration output, Negative durations, Exact milliseconds, Local-time inputs.

Elapsed duration is not calendar duration

Use this page for exact milliseconds and fixed 24-hour-day arithmetic. Do not use it for business days, billing months, age calculations, or recurring calendar rules.

如何使用?

  1. Enter complete Start date and time and End date and time values in the browser’s current zone.
  2. Select Calculate; reversing the values produces a negative duration.
  3. Copy the ISO day/time form together with total days, hours, or milliseconds required by the next system.

实际输入输出示例

Measure one day, one hour, one minute, and one second

输入

Start: 2026-01-01 00:00:00
End:   2026-01-02 01:01:01

输出

ISO 8601 duration: P1DT1H1M1S
Total hours: 25.017
Milliseconds: 90,061,000

The calculation subtracts the two instants and expresses full 24-hour days plus the remaining time.

常见错误与修复方法

现象可能原因修复方法
A month-long interval is not shown as P1M.Months have different lengths, while this page reports exact elapsed 24-hour days.Use a calendar-aware date library when month or year units must follow calendar arithmetic.
The elapsed hours around a DST change are not 24 for adjacent local dates.Browser-local times can cross an offset transition.Use Time Zone Converter to inspect the instants and choose UTC inputs for fixed elapsed-time calculations.

Important behavior of Duration Calculator

该工具的实际边界: Elapsed days are exact 24-hour units; calendar months and business-day rules are intentionally excluded.

标准与实现参考

关于Duration Calculator的常见问题

Does the Duration Calculator upload my input?

No. Processing runs in the current browser tab, and the page does not send tool input to a KitLumi processing endpoint.

What input does the Duration Calculator accept?

It accepts a start and end date with seconds. The workspace checks the input and reports malformed or unsupported values before it produces a result.

What does the Duration Calculator produce?

It produces ISO 8601 days/time notation plus total days, hours, and milliseconds. Copy and download controls appear when the output format supports them.

What limitation should I know?

Elapsed days are exact 24-hour units; calendar months and business-day rules are intentionally excluded.

更新记录

本次实质更新: Duration Calculator: Added ISO duration output, Negative durations, Exact milliseconds, Local-time inputs, responsive controls, explicit runtime disclosure, and task-specific examples and limitations.

谁在维护这个工具?

KL
KitLumi EngineeringKitLumi 工程团队负责维护工具行为、隐私说明、示例和自动化测试。