Converts milliseconds into seconds.

Type signature

(milliseconds: number) => number

Examples

toSeconds(1000);
// ⇒ 1
Try in REPL

Questions

  • How to convert milliseconds into seconds?

TypeScript sourceJavaScript source