LOTUSSCRIPT LANGUAGE


TimeNumber function
Example

Returns a time value for a specified hour, minute, and second.

Syntax

TimeNumber ( hour , minute , second )

TimeSerial is acceptable in place of TimeNumber.

Elements

hour


minute
second
Return value

TimeNumber returns a Variant of DataType 7 (Date/Time). Its value represents time of day as a fraction of 24 hours, measured from midnight.

Usage

You can use expressions for hour, minute, and second to compute a time relative to another time. For example:

TimeNumber(3, 5, 5 - 10)

computes the time 10 seconds before 3:05:05 AM (the result is 3:04:55 AM).

Example
See Also