DAT3000$ [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
DAT3000$
The DAT3000$ function returns a substring of the date string returned by
the HP 3000 DATELINE intrinsic. On the HP 3000 under MPE XL, the date
string is a string of 27 characters with the following format:
MON, MAR 3, 1986, 12:44 PM
Syntax
DAT3000$ (num_expr1, num_expr2)
Parameters
num_expr1 A numeric expression that evaluates to the position of
the first character of the date string.
num_expr2 A numeric expression that evaluates to the position of
the last desired character of the date string.
Both num_expr1 and num_expr2 must evaluate to a value in
the range of [1, 27], inclusive. The value of num_expr1
must be less than or equal to the value of num_expr2.
If any of these conditions is violated an error occurs.
Examples
10 A$=DAT3000$(1,17)
15 PRINT "12345678901234567"
20 PRINT A$
99 END
The above program prints:
12345678901234567
MON, MAR 3, 1986
10 A$=DAT3000$(1,10)
15 PRINT "1234567890"
20 PRINT A$
99 END
The previous program prints:
1234567890
MON, MAR
MPE/iX 5.0 Documentation