@aptos-labs/ts-sdk - v5.1.4
    Preparing search index...

    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