home *** CD-ROM | disk | FTP | other *** search
- {*****************************************************************************
- * *
- * AL_Time.Pas By Andrew Farmer *
- * Date/Time Calculation Module for AvaiList Revision 1.10 *
- * *
- * Copyright 1989 by Andrew D. Farmer, All Rights Reserved. *
- * *
- * *
- * Compiled using Turbo Pascal Version 5.0 By Borland International *
- * *
- *****************************************************************************}
-
- Procedure TIME;
- Begin
- GetTime(hour, min, sec, smallsec);
- Str(Hour,Houru);
- Str(Min,Minu);
- Str(sec,secu);
- if Houru = '0' then houru := '00';
- if Houru = '1' then houru := '01';
- if Houru = '2' then houru := '02';
- if Houru = '3' then houru := '03';
- if Houru = '4' then houru := '04';
- if Houru = '5' then houru := '05';
- if Houru = '6' then houru := '06';
- if Houru = '7' then houru := '07';
- if Houru = '8' then houru := '08';
- if Houru = '9' then houru := '09';
- if Minu = '0' then Minu := '00';
- if Minu = '1' then Minu := '01';
- if Minu = '2' then Minu := '02';
- if Minu = '3' then Minu := '03';
- if Minu = '4' then Minu := '04';
- if Minu = '5' then Minu := '05';
- if Minu = '6' then Minu := '06';
- if Minu = '7' then Minu := '07';
- if Minu = '8' then Minu := '08';
- if Minu = '9' then Minu := '09';
- if secu = '0' then secu := '00';
- if secu = '1' then secu := '01';
- if secu = '2' then secu := '02';
- if secu = '3' then secu := '03';
- if secu = '4' then secu := '04';
- if secu = '5' then secu := '05';
- if secu = '6' then secu := '06';
- if secu = '7' then secu := '07';
- if secu = '8' then secu := '08';
- if secu = '9' then secu := '09';
- End; {Procedure Time}
-
- Procedure DATE;
- Begin
- GetDate(year, month, day, dofweek);
- Str(day,dayu);
- if month = 1 then month2 := 'January';
- if month = 2 then month2 := 'February';
- if month = 3 then month2 := 'March';
- if month = 4 then month2 := 'April';
- if month = 5 then month2 := 'May';
- if month = 6 then month2 := 'June';
- if month = 7 then month2 := 'July';
- if month = 8 then month2 := 'August';
- if month = 9 then month2 := 'September';
- if month = 10 then month2 := 'October';
- if month = 11 then month2 := 'November';
- if month = 12 then month2 := 'December';
- if dofweek = 0 then dow := 'Sunday';
- if dofweek = 1 then dow := 'Monday';
- if dofweek = 2 then dow := 'Tuesday';
- if dofweek = 3 then dow := 'Wednesday';
- if dofweek = 4 then dow := 'Thursday';
- if dofweek = 5 then dow := 'Friday';
- if dofweek = 6 then dow := 'Saturday';
- if dayu = '1' then dayu := '01';
- if dayu = '2' then dayu := '02';
- if dayu = '3' then dayu := '03';
- if dayu = '4' then dayu := '04';
- if dayu = '5' then dayu := '05';
- if dayu = '6' then dayu := '06';
- if dayu = '7' then dayu := '07';
- if dayu = '8' then dayu := '08';
- if dayu = '9' then dayu := '09';
- mh := month2;
- End; {Procedure Date}