company logo

DateTime :: hour - Hours property

The hour property provides the number of hours from the time value (hh of hh:mm:ss,cc).

Return value:  Hour ( int32  )

Hour of the day. The value should range from 0 to 23.

Implementation overview

Implementation details

  1. Get hours from time value
    int32 DateTime  :: hour (  )

    The function returns the number of hours from the time value.

  2. to list
  3. Set hours
    int32 DateTime  :: hour ( int32 iHour )

    The number of hours is set to the value passed in iHour. When the value is less than 0 or greater than 23, the function throws an exception.

    • iHour - Hour

      Hour of the day. The value should range from 0 to 23.

  4. to list