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

hoursToSeconds

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

§Parameters

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

§Return Type

§
number
[src]

The number of hours converted in seconds