Hour function (LotusScript® Language)

Returns the hour of the day for a date/time argument as an integer from 0 to 23.

Syntax

Hour ( dateExpr )

Elements

dateExpr

Any of the following:

  • A valid date/time string of String or Variant data type.

    For Notes® or Domino®, LotusScript® interprets a 2-digit year designation in a date/time string so that 50 through 99 represent the years 1950 through 1999 and 00 through 49 represent the years 2000 through 2049.

    For SmartSuite®, LotusScript® interprets the years differently. For more information, see the SmartSuite® online Help entry entitled Year 2000.

  • A number within the valid date range: the range -657434 (Jan 1, 100 AD) to 2958465 (Dec 31, 9999 AD), inclusive.
  • NULL

Return value

Hour returns a Variant containing a value of DataType 2 (Integer). If the dateExpr is a Variant containing the value NULL, then Hour returns NULL.

Example