home *** CD-ROM | disk | FTP | other *** search
- ┌───────────────────────────────────────────────────────────────────────┐
- │ Author: Jon R. Meyer Compiler: QB 4.x and up and │
- │ 484 Neal Ave S. Bascom 6 │
- │ Afton, MN 55001 │
- │ Date: August 8, 1989 Release : 1.0 │
- │ │
- │ Copyright(C) 1989 Jon R. Meyer │
- ├───────────────────────────────────────────────────────────────────────┤
- │ │
- │ Name: DatSqz / DatUnSqz Type: SUB Level: BASIC │
- │ │
- │ Syntax: CALL DatSqz(Dat$,SqzDat%) / CALL DatSqz(Dat$,SqzDat%) │
- └───────────────────────────────────────────────────────────────────────┘
-
- DAtSqz :
-
- Compress an 8 byte string date (XX/XX/XX) into a 2 byte integer. This
- routine can be used to compress a date to be written to a file to save
- 6 bytes per date written.
-
- Example:
-
- DEFINT A-Z
- Dat$ = "05/29/48"
- call DatSqz(Dat$,Sqzdat%)
-
- DatUnSqz :
-
- Uncompress a 2 byte integer date which has been compressed using
- DatSqz back into an 8 byte string date (XX/XX/XX).
-
- Example:
-
- DEFINT A-Z
-
- Dat$ = SPACE$(8)
- call DatUnSqz(Dat$, SqzDate%)
- PRINT "The date is " Dat$
-
- Limitations:
-
- These routines will only work over a 100 Year span. In other words
- "01/01/1901" and "01/01/2001" may conflict.
- Also, it is not possible for you to add or subtract 14 from the SqzDate%
- to get the date 14 days from the date squeezed.
-
- ───────────────────────────────────────────────────────────────────────────────
-
- These routines are for whomever wants to use it. I am not charging (at
- this time) anything as long it is used for personal use or freeware
- programs. If these routines are to be used in any packages that are to be
- sold to the public (either commercially or as registered shareware),
- I feel it is only fair that I be informed of this use. I also feel
- that it would be appropriate in this case to send me a small donation
- (A couple of bucks tops but atleast your name and address and a free
- copy of your program). I am not in this to make money but if someone
- else is going to make money from my work, I should get at least a
- little something from it.
-
- As you may have noticed, I did not include the source code for these
- routines. The reason for this is to protect these routines and the others
- that I have or may develop from time to time from any changes which may
- cause them to no longer function the way they are documented. I am
- willing to accept any comments or suggestions for changes but I will
- have the final say (obviously) on what happens. I do not intend to make
- changes which would cause this routine not to function as originally
- documented unless it is felt that the changes will only improve the
- routine. Of course if this happens, I will make note of it so please
- read the documentation.
-
- I do have one thing that I would like to ask of anyone who might decide
- to use these routines, let me know what you think of it. I like praise
- but I can also take criticism. You can either send me a note at
- the address above leave a note for me on PC Library BBS in Minneapolis.
- The number is 612-435-8058.
-
-