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

secondsToHours

import { secondsToHours } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Convert 7200 seconds into hours
const result = secondsToHours(7200)
//=> 2
@example
// It uses floor rounding:
const result = secondsToHours(7199)
//=> 1
function secondsToHours(seconds: number): number;
§
secondsToHours(seconds: number): number
[src]

§Parameters

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

§Return Type

§
number
[src]

The number of seconds converted in hours