MCPcopy
hub / github.com/deepops-ai/deepops / intervalToMs

Function intervalToMs

ui/src/utils/datetime/range.ts:36–39  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

34// convert a interval string to milliseconds
35// e.g. 1m -> 60000
36export function intervalToMs(str: string): number {
37 const info = describeInterval(str);
38 return info.sec * 1000 * info.count;
39}
40
41// histogram & trends
42const intervals_in_seconds = {

Callers 1

calculateIntervalFunction · 0.85

Calls 1

describeIntervalFunction · 0.85

Tested by

no test coverage detected