- OpenAPI: add missing endpoints (add-from-url, subscriptions, public availability) - OpenAPI: CalendarSubscription schema, Subscriptions tag - Frontend app - Migrations: count_for_availability, subscriptions_sync, user_preferences, calendar_settings - Config, rate limit, auth, calendar, booking, ICS, availability, user service updates Made-with: Cursor
24 lines
557 B
TypeScript
24 lines
557 B
TypeScript
/**
|
|
* @name secondsToHours
|
|
* @category Conversion Helpers
|
|
* @summary Convert seconds to hours.
|
|
*
|
|
* @description
|
|
* Convert a number of seconds to a full number of hours.
|
|
*
|
|
* @param seconds - The number of seconds to be converted
|
|
*
|
|
* @returns The number of seconds converted in hours
|
|
*
|
|
* @example
|
|
* // Convert 7200 seconds into hours
|
|
* const result = secondsToHours(7200)
|
|
* //=> 2
|
|
*
|
|
* @example
|
|
* // It uses floor rounding:
|
|
* const result = secondsToHours(7199)
|
|
* //=> 1
|
|
*/
|
|
export declare function secondsToHours(seconds: number): number;
|