HP 3000 Manuals

TIME [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

TIME 

The TIME function returns information about the current time of day, and
the actual time elapsed since a program began execution.

Syntax 

TIME (num_expr)

Parameters 

num_expr         A numeric expression that evaluates to an integer.

                 If num_expr evaluates to a real value, the TIME function
                 rounds it to the nearest short integer before returning
                 information.

                 The TIME function returns the following information
                 dependent on the value of num_expr:

                 num_expr Value      Information Returned 

                 Less than zero      Clock time since interpreter or
                                     compiled program began running
                 Zero                Minute of current time of day
                 One                 Hour of current time of day
                 Two                 Current day
                 Three or greater    Current year

Examples 

     100 Run_time = TIME(-1)     !Returns clock time since program started
     110 Minute = TIME(0)        !Returns the current minute
     120 Hour = TIME(1)          !Returns the current hour
     130 Day = TIME(2)           !Returns the current day
     140 Year = TIME(3)          !Returns the current year
     150 Year = TIME(4.8)        !Also returns the current year



MPE/iX 5.0 Documentation