home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
099
/
HH_STR13.ZIP
/
DATEINFO.DOC
next >
Wrap
Text File
|
1993-03-13
|
2KB
|
45 lines
DATE INFORMATION
In working with various bulletin boards and dealing with
miscellaneous files over the years, we have found a number of
date formats in use. To facilitate our own function naming, we
have given the various types the following totally arbitrary
numerical designations. This information is used with both
the "strdate<n>" and "strdateconv" functions.
type format
---- ------
1 mm/dd/yy NOTE: mm and dd will be padded on the
2 mm-dd-yy left with a 0 where necessary
3 m/ d/yy NOTE: m and d will be padded on the
4 m- d-yy left with a blank where necessary
5 m/d/yy NOTE: m and d can be one digit or two
6 m-d-yy digits but will not be padded
with either 0's or blanks
7 yy/mm/dd NOTE: this format is a sortable version
which is similar to type 1
As can be seen above, the difference between the even and odd
types is the use of '-' versus '/' as the separator character.
The difference among the three groups of types (1/2, 3/4 and 5/6)
is as follows:
1/2 Format is totally fixed and there are no blanks.
0's will be added to the left of mm and dd as
necessary to fill out the format.
3/4 Exactly the same as 1/2 except that no 0's will
be added, so the format may contain blanks.
5/6 The date appears in minimal form using a variable
format with no leading blanks or zeros in any
subfield
7 This is identical to 1, except that the order of
the month/day/year has been changed so as to
provide an easily sortable format.