Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Minutes to Milliseconds

Minutes to Milliseconds

Turns a timeout, TTL or polling interval agreed in minutes into the millisecond integer a config file expects, with the intervals developers write most.

Policies Are Agreed in Minutes, Config Files Want Milliseconds

Nobody writes a ticket asking for a 900 000 ms session timeout. The decision arrives as "log people out after fifteen minutes", "give the upstream five seconds", "cache it for five minutes" — and then somebody has to type an integer into a YAML file, an environment variable or a client builder that counts in milliseconds. The translation is trivial arithmetic and a surprisingly common source of outages, because a value that is wrong by a factor of a thousand still looks like a perfectly reasonable number.

Conversion factor: 1 min = 60 000 ms — multiply minutes by 60, then by 1 000. A fifteen-minute idle timeout is 15 × 60 000 = 900 000 ms, and a thirty-second probe interval is 0.5 min = 30 000 ms.

Where the Millisecond Integers Show Up

Timers in the runtime

JavaScript's setTimeout and setInterval take a millisecond delay and nothing else, so every scheduled poll, debounce and keep-alive in a browser or Node service is expressed there.

Client and connection timeouts

Connect, read and total-request deadlines on an HTTP client are usually millisecond integers, sitting alongside connection-pool idle limits set the same way.

Cache lifetimes and token windows

An in-process cache entry, a signed-token lifetime or a refresh window is often stored as a duration in milliseconds even when the policy behind it was agreed in minutes.

Retry and backoff schedules

Base delay, multiplier and ceiling are millisecond figures; the deadline they must stay under is the one the product team stated in minutes.

Turning an Agreed Interval Into a Config Value

Two directions get used constantly: writing a new value, and working out what an existing integer in somebody else's file actually means.

1

Enter the interval as it was agreed

Put 15, 5, 0.5 or 1440 in the minutes field. Fractions are fine for sub-minute values, and a comma is accepted in place of a dot, so 2,5 and 2.5 both give 150 000.

2

Count the zeros before you commit it

Thousands are separated with a space in the output, so 900 000 is legible at a glance rather than a run of digits you have to count twice in a code review.

3

Reverse it to audit an existing file

The swap button (↔) runs ms → min, which is how you find out that the 1 800 000 someone committed last year is half an hour and the 18 000 next to it is eighteen seconds.

4

Copy the bare integer into the field

The copy control on each side gives you digits only — no unit suffix, no separators — which is exactly what a YAML scalar or an environment variable needs. Ctrl + C in the field does the same.

Check the unit before you paste: a setting whose name ends in Seconds will read 900 000 as ten and a half days, and a millisecond setting will read 900 as under a second. A pasted number is only correct together with the field it lands in.

Intervals You Will Actually Type Into a Config File

The durations that turn up again and again in service configuration, with the integer each one becomes and the setting it usually belongs to.

Interval Minutes Milliseconds Where it usually lands
30 seconds0.530 000Liveness probe period, HTTP read deadline
1 minute160 000Metrics scrape interval, short-lived cache entry
5 minutes5300 000Config refresh, feature-flag poll
10 minutes10600 000Background reconciliation loop
15 minutes15900 000Idle session timeout
30 minutes301 800 000Access-token lifetime, lock lease
1 hour603 600 000Long cache lifetime, key rotation window
1 day1 44086 400 000Nightly cleanup, log retention tick
7 days10 080604 800 000Refresh-credential lifetime
Timer ceiling35 791.3942 147 483 647Largest delay a 32-bit timer can hold

Everything above the day row is where the trouble starts. Once a duration is measured in weeks the millisecond integer runs to nine digits, and the last row is a hard wall rather than a suggestion.

What Makes This Useful During a Config Review

Both boxes accept a config value

Type a policy in minutes on the left or paste a suspicious integer on the right; whichever side you touch drives the other, so an audit and an edit use the same screen.

Decode a stray 300000 in one press

The swap arrows put milliseconds on the left, the direction you want when reviewing a diff full of long integers nobody has commented.

Seconds, hours and days share the dropdown

Searchable unit lists on both sides mean the same page answers "how many seconds is that" for a setting whose name ends in Seconds, without opening anything else.

Long integers stay countable

Thousands are spaced in the output and stray spaces in your input are ignored, so you can paste 604 800 000 back in from a table without cleaning it first.

Questions That Come Up in Code Review

What do I put in the config for a 15-minute session timeout?

900 000 if the setting is in milliseconds, 900 if it is in seconds, and 15 if the library parses a duration string such as 15m. All three are the same policy, and all three look plausible in the wrong slot — 900 milliseconds logs everyone out almost immediately, while 900 000 seconds keeps a session alive for ten and a half days. Confirm the unit from the documentation, not from the shape of the number.

How do I tell whether a library wants seconds or milliseconds?

Three signals, in order of reliability. First, the name: anything ending in Seconds or Millis has told you outright, and Kubernetes probe fields follow this convention throughout. Second, the type: a language-level duration type such as Go's time.Duration or Java's Duration carries its own unit, so you never write a bare integer. Third, protocol convention: HTTP header directives are defined in seconds by the spec, while runtime timer APIs are almost always in milliseconds. When none of that settles it, set an obviously short value in a test environment and watch what actually expires.

What happens if a timer delay goes past 2,147,483,647 ms?

It fires straight away instead of waiting. Browser and Node timers hold the delay in a signed 32-bit integer, whose maximum is 2 147 483 647 ms — 35 791.394 minutes, or about 24.855 days. Anything larger overflows and the callback runs on the next tick, which is why a scheduler asked to wait 30 days silently does its work immediately and then thinks the window has passed. For horizons beyond three weeks, chain shorter timers or store the target moment and re-arm a timer each time the process starts.

Where should an exponential backoff stop doubling?

Two ceilings, not one. Cap the individual delay somewhere between 20 000 and 60 000 ms — starting at 100 ms and doubling, you reach 25 600 ms on the ninth attempt, and waiting longer than a minute between tries rarely helps anyone. Then cap the total: a retry budget of 2 minutes is 120 000 ms, and once the clock passes it the call should fail rather than keep going. Multiply each delay by a random factor as well, so a thousand clients that failed together do not all come back at the same instant.

Should a five-minute cache TTL be written 300 or 300000?

It depends which cache. An HTTP Cache-Control: max-age directive is defined in seconds, so it is 300 and a 300000 there would promise browsers three and a half days. An in-process or client-side cache written against a timer usually takes 300 000 ms. Key–value stores frequently offer both — one command in seconds, another in milliseconds — with the unit encoded in the command name. Same policy, three different integers, and the only safe habit is to read the unit before typing the value.

min
ms

Timeout and TTL Values in Config

0.5 min=30 000 ms
1 min=60 000 ms
5 min=300 000 ms
15 min=900 000 ms
60 min=3 600 000 ms
1 440 min=86 400 000 ms

Minute (min)

The unit an interval is decided in: log people out after fifteen, refresh the flags every five, reconcile every ten. It is what the ticket says and what nobody types into the file.

Millisecond (ms)

The unit runtimes count delays in, at 60 000 to the minute. Timer APIs hold that delay in a signed 32-bit integer, so nothing above 2 147 483 647 ms — roughly 24.8 days — survives being scheduled directly.

Enter the interval as it was agreed — 0.5, 15, 1440 — and read the integer off the right-hand field
Output separates thousands with a space, so 604 800 000 can be checked without counting zeros twice
Press swap (↔) for ms → min to decode a long integer already sitting in someone else's config
Set the right dropdown to seconds when the setting name ends in Seconds — nothing leaves your browser
Want to learn more? Read documentation →
1/5

Time Converter

Centuries to Millenniums Centuries to Years Days to Hours Days to Minutes Days to Months Days to Seconds Days to Weeks Days to Years Decades to Centuries Decades to Years Hours to Days Hours to Minutes Hours to Months Hours to Seconds Hours to Weeks Hours to Years Microseconds to Milliseconds Microseconds to Nanoseconds Microseconds to Seconds Millennia to Years Millenniums to Centuries Milliseconds to Microseconds Milliseconds to Minutes Milliseconds to Seconds Minutes to Days Minutes to Hours Minutes to Milliseconds (current page) Minutes to Seconds Minutes to Years Months to Days Months to Hours Months to Weeks Months to Years Nanoseconds to Microseconds Nanoseconds to Seconds Seconds to Days Seconds to Hours Seconds to Microseconds Seconds to Milliseconds Seconds to Minutes Seconds to Nanoseconds Seconds to Years Weeks to Days Weeks to Hours Weeks to Months Weeks to Years Years to Centuries Years to Days Years to Decades Years to Hours Years to Minutes Years to Months Years to Seconds Years to Weeks
Start typing to search...
Searching...
No results found
Try searching with different keywords