# hours · FT4 TypeScript client · Chromia Docs (concept)

> hours(h: number): number Returns a value that represents h hours. Can also be combined with the other
time functions in this module. For example: Plain tex

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/authentication.hours/

Function

# hours

* ```signature
  hours(h: number): number
  ```

  Returns a value that represents `h` hours. Can also be combined with the other
  time functions in this module. For example:

  Plain text

  ```
  hours(2) + minutes(20) // Represents: "2 hours and 20 minutes"
  ```

  #### Parameters

  + h: number

    how many hours to get

  #### Returns number

  #### Remarks

  this function does not care in any way about leap seconds and any other time
  adjustments. This means that when you define an auth descriptor with a rule that makes
  it expire after 1 hour, it will expire after exactly 60 \* 60 seconds, even if there has been
  a leap second during that hour, which means it will be off by a second.

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/authentication.hours.html)Generated API reference, mirrored from the live docs
