bas7advr.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
TimeSerial# Function Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
TimeSerial# returns a serial number that represents the time of the
arguments.
TimeSerial# (hour%, minute%, second%)
■ You can use negative numbers as arguments, as long as the resulting
serial number is positive. For example, to find the serial number
for the time 50 seconds before 2:00:02, you could use:
TimeSerial#(2,0,2-50)
Usage Notes
■ For information on serial numbers, see ◄Serial Numbers►.
Important
■ To use TimeSerial# in the QBX environment, use the FINANCER.QLB Quick
library. To use TimeSerial# outside the QBX environment, link your
program with the appropriate DTFMTxx.LIB file. Depending on the
compiler options you chose when you installed BASIC, one or more of
the following files will be available:
Filename Compiler options
════════════ ═════════════════════════════════════════════
DTFMTER.LIB 80x87 or emulator math; DOS or OS/2 real mode
DTFMTAR.LIB Alternate math; DOS or OS/2 real mode
DTFMTEP.LIB 80x87 or emulator math, OS/2 protected mode
DTFMTAP.LIB Alternate math; OS/2 protected mode
■ The DATIM.BI header file contains the necessary declarations for
using TimeSerial#.
■ For more information on using libraries, see "Creating and Using
Quick Libraries" and "Using LINK and LIB" in the BASIC Programmer's
Guide.