日期计算器
计算两个日期之间的差值,或在日期上加减时间单位。免费、隐私、100% 客户端运行。
尝试示例:
Local only
最近历史
暂无历史
使用方法
- 选择模式:diff(差值)、add(加)或 subtract(减)。
- diff 模式下输入以换行分隔的两个日期。
- add/subtract 模式下设置单位和数量,输入一个日期。
- 查看结果。
使用此工具的任务
计算 business days between dates
Business day calculation excludes weekends 和 holidays. Learn 到计算工作 days, 添加/subtract business days, 和处理 holidays. 任务
计算 the difference between two dates
Find 时长之间 two dates 在 days, hours, minutes, 或 business days, accounting 为 timezones. 任务
转换 between Unix timestamp, ISO 8601, and human-readable dates
Translate 时间值 之间 Unix epoch 第二, milliseconds, ISO 8601, 和本地/UTC 日期 strings. 任务
转换 between timezones correctly
Timezone conversion 是 tricky 由于 DST, abbreviations, 和 political changes. Learn 到 use IANA timezone names 和 Instant/ZonedDateTime 模式. 任务
将 Unix 时间戳转换为可读日期
把自纪元起的秒或毫秒值转为人类日期,并厘清两个经典困惑:单位与时区。 任务
常见问题
- 如何计算两个日期的差值?
- 选择 diff 模式,输入两个以换行分隔的日期,结果为所选单位的差值。
- 如何在日期上加减时间?
- 选择 add 或 subtract 模式,设置单位和数量,输入单个日期,结果为 ISO 8601 格式的计算日期。