_BDTIM - convert BCD date to time number.
Usage:
B:
timenum = _bdtim( bcddate [, pulses] );
C:
time_t _bdtim(int bcddate, int pulses);
Where:
- bcddate
- is a date given as six BCD digits (MMDDYY).
The argument is the actual value, not a pointer to the value.
If the year (YY) is 60 or greater, it is taken to be in
the 20th century; for example, 122596 is December 25, 1996.
If the year is less than 60, it is taken to be in the
21st century; for example, 052403 is May 24, 2003.
- pulses
- is an optional argument specifying a time on the
given day, measured as the number of clock pulses (1/64,000th of
a second) after midnight.
If this argument is omitted, the default is zero
(midnight at the beginning of the day).
- timenum
- is the number of seconds of the given date and time
from 0:00 a.m. Greenwich Mean Time on January 1, 1970.
Description:
_BDTIM converts a BCD date and optional time into a
standard time number.
It uses the "system" time zone locale for the conversion.
See Also:
- expl b time
- for more on date/time functions.
- expl b tz
- for more on time zones.
Copyright © 2000, Thinkage Ltd.