Crystal Reports for Eclipse Designer Guide

Hour (x)

Description
The Hour function extracts the hour portion of a Time value and returns it as a whole number.
Arguments
  • x is a Time value or DateTime value.
  • Returns
    Whole Number
    Action
    The Hour function extracts the hour portion of a Time value and returns it as a whole number.
    Typical uses
    Use this function anytime you need to display just the hour portion of a Time value or to perform calculations based on hours.
    Examples
    Hour(CTime(10, 20, 22))
    Returns 10.
    Hour(CTime(10, 00, 30)) - Hour(CTime(6, 00, 00))
    Returns 4.



    SAP BusinessObjects
    http://www.sap.com/sapbusinessobjects/
    Support services
    http://service.sap.com/bosap-support/
    Product Documentation on the Web
    http://help.sap.com/