Skip to content
UniKit

Time Calculator

Parse one expression per line: a timestamp plus or minus a duration, or the difference between two timestamps. Durations accept 1d2h3m4s and Chinese units. Outputs the resulting instant, the total seconds and a human readable difference; dates are read as UTC and the clock is never consulted.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Time expressions

Result

One expression per line; each block shows base, offset and result.

Enter a time expression to see the result

Expressions: 0 · Total seconds: 0 · Days: 0

What this tool does

  • Turn a departure time plus a flight duration into the arrival instant.
  • Work out how many days two log timestamps are apart.
  • Convert a duration into days, hours, minutes and seconds.

Example

Input

2024-03-01 10:00:00 + 2h30m

Output

基准时刻 / Base: 2024-03-01 10:00:00
第 1 行 / Line 1: 2024-03-01 10:00:00 + 2h30m
  基准 / Base: 2024-03-01 10:00:00
  偏移 / Offset: +2 小时 30 分
  结果 / Result: 2024-03-01 12:30:00
合计 / Total: 2 小时 30 分(9000 秒 / 0.10 天)

Frequently asked questions

What input format is expected?

One expression per line: `2024-03-01 10:00:00 + 2h30m`, `- 90m`, or two timestamps subtracted; omit the base to use the base-instant control.

How are time zones handled?

Everything is read as UTC and the clock is never consulted, so the same input gives the same result everywhere.

Which duration forms are accepted?

`1d2h3m4s`, `2h30m`, `90m`, `45s`, Chinese units such as `1天2小时`, and a bare number meaning seconds.

Keywords:time calculatorUTCduration

Related tools