Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

hoursToMilliseconds

import { hoursToMilliseconds } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Convert 2 hours to milliseconds:
const result = hoursToMilliseconds(2)
//=> 7200000
function hoursToMilliseconds(hours: number): number;
§
hoursToMilliseconds(hours: number): number
[src]

§Parameters

§
hours: number
[src]
  • number of hours to be converted

§Return Type

§
number
[src]

The number of hours converted to milliseconds