HOUR - Returning the Hour of a Time Value

  • Last update:December 19, 2024
  • Extracted Data

    1. Overview

    Syntax

    HOUR(Serial_number,Format)

    Returns the hour of a specified time value. The function specifies the returned value as an integer from 0 (0:00) to 23 (23:00).

    Parameter

    Serial_number

    Represents the time that contains the hour you want to find.

    Notes

    • The function allows the parameters to be empty. That is to say, you can simply use HOUR(). When the parameters are empty, the function returns the hour of the current system server time.

    • The first parameter is of the date or text type by default, and the second is of the text type by default.

    3. Example

    Formula
    ResultNote

    HOUR("11:32:40")

    11


    HOUR()

    15

    The corresponding system server time is 2020-10-23 15:36:02.

    HOUR("11:32:40","HH:mm:ss")

    11


    Real-Time Data

    1. Overview

    Syntax

    HOUR(Serial_number)

    Returns the hour of a specified time value. The function specifies the returned value as an integer from 0 (0:00) to 23 (23:00).

    Parameter

    Serial_number

    Represents the time that contains the hour you want to find.

    2. Notes

    • The function allows the parameter to be empty. That is to say, you can simply use HOUR(). When the parameter is empty, the function returns the hour of the current system server time.

    • The parameter can be of the default date or text type.

    3. Example

    Formula
    ResultNote

    HOUR("11:32:40")

    11


    HOUR()

    15

    The corresponding system server time is 2020-10-23 15:36:02.

    附件列表


    主题: Advanced Data Analysis
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy