hour
|
The hourfunction returns the hour of a Date or Time argument. The value of the
hour is calculated on the basis of a 24 hour clock and ranges from 0 (12:00 AM) to 23 (11:00 PM).
Usage The hour function is used to extract the hour component from a
Date/Time object.
(hour date-value ) (hour time-text ) (hour Julian-date ) An Integer that represents the hour component of the argument
Expression:
Arguments
Name
Type
Description Argument: date-value Date
An Analytic Information Server Date value Argument: time-text String Text
A time string in the form "hh:mm:ss AM/PM" where hh is the number of hours (0-24),
mm in the number of minutes (0-60), ss is the optional number of seconds (0-60)
and AM/PM optionally specifies morning or afternoon. If you use 12 hour time,
you must include AM or PM; if you use 24 hour time, do not include AM or PM. Argument: Julian-date Date
A Julian date with a fraction extension representing the time for that date.
The first two digits after the decimal point in the serial number correspond to a
fraction of a 24 hour day. For example 0.00 corresponds to 12:00 AM; 0.25 corresponds
to 6:00 AM; 0.50 corresponds to 12:00 Noon and so on.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
Number | Date | String | Text |
Integer |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|