Function floorToWholeHour

  • Floors the given timestamp to the nearest whole hour. This function is useful for normalizing timestamps to hourly intervals.

    Parameters

    • timestampInSeconds: number

      The timestamp in seconds to be floored.

    Returns number