Skip to main content

Time Unit & Tick Converter

Convert duration units and .NET ticks to dates or Unix timestamps

Convert time and duration units

Convert from nanoseconds through weeks and see every equivalent at once.

Converted value

2

All equivalents

Nanoseconds
120,000,000,000
Microseconds
120,000,000
Milliseconds
120,000
Seconds
120
Minutes
2
Hours
0.0333333333333
Days
0.00138888888889
Weeks
0.000198412698413

.NET tick converter

One .NET tick is 100 nanoseconds since 0001-01-01 00:00:00 UTC.

ISO 8601
1970-01-01T00:00:00.000Z
Unix seconds
0
Unix milliseconds
0

Was this Time Unit & Tick Converter helpful?

Help us keep tools reliable, fast, and bug-free.

What you can do with Time Unit & Tick Converter

  • Convert seconds to minutes
  • Convert milliseconds to seconds
  • Convert .net ticks to date

How this date and time calculation works

Convert durations between nanoseconds and weeks, or convert .NET 100-nanosecond ticks to ISO dates and Unix timestamps.

Example input

Duration: 120 seconds; .NET ticks: 621355968000000000

Example output

Duration: 2 minutes | .NET ticks: 1970-01-01T00:00:00.000Z | Unix seconds: 0 | Unix milliseconds: 0

Practical workflow

  1. Enter a numeric duration and choose its source and target units to see the converted value.
  2. Review the equivalent values for nanoseconds, microseconds, milliseconds, seconds, minutes, hours, days, and weeks.
  3. Copy the selected duration conversion when you need to use it elsewhere.
  4. Use Ticks to Date or Date to Ticks to convert .NET ticks and ISO date-time values; include Z or a UTC offset for unambiguous dates.

Common use cases

  • Translate benchmark durations between nanoseconds, microseconds, and milliseconds.
  • Convert a .NET DateTime tick value into an ISO date and Unix timestamps.
  • Convert a timestamp with an explicit UTC offset into .NET ticks.

Important notes and limitations

  • Duration arithmetic uses JavaScript numbers and displays up to 12 significant digits; conversions that overflow or underflow numeric range are reported as errors.
  • The .NET tick converter handles absolute date-time instants; ticks are not included as a duration unit in the all-equivalents list.
  • Invalid, blank, non-finite, or out-of-range tick inputs produce an error instead of a converted date.
  • ISO date inputs use JavaScript Date millisecond precision, so sub-millisecond .NET tick precision cannot be preserved when converting a date back to ticks.

CLI time unit conversion & epoch calculations

Convert seconds to human readable duration with units CLI

units '1000000 seconds' 'days; hours; minutes; seconds'

Decomposes large second counts into days, hours, minutes, and seconds using GNU units.

Millisecond vs Microsecond epoch truncation

Dates resolving to year 1970 due to unit scale mismatch

Cause: Passing seconds (10 digits) to JavaScript 'new Date(ms)' which expects milliseconds (13 digits).

Solution: Multiply Unix timestamps by 1000 before passing to JavaScript Date constructors.

Continue your workflow

Frequently asked questions

What are .NET DateTime ticks and how are they calculated?

A .NET tick represents 100 nanoseconds (one ten-millionth of a second). The value measures elapsed ticks since 12:00:00 midnight on January 1, 0001 (Common Era).

How many nanoseconds are in a single millisecond?

There are exactly 1,000,000 nanoseconds in one millisecond (and 1,000 microseconds per millisecond).

How many significant digits does the duration converter show?

The result is formatted to at most 12 significant digits using JavaScript number arithmetic. Conversions outside the representable numeric range show an error.

Can date conversion preserve sub-millisecond .NET ticks?

No. JavaScript Date values have millisecond precision, so converting an ISO date back to .NET ticks cannot retain sub-millisecond tick digits.