qp.hlp (Table of Contents; 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.
DateTime
  Standard Units Contents Index                             Back
 
  TYPE
      { record for unpacked date and time format }
      DateTime = RECORD
          Year, Month, Day, Hour, Min, Sec : Word;
          END;
 
  Unit:     Dos
 
  Context:  PackTime, UnpackTime
 
  Description
 
    The DateTime type makes it convenient to pass date and time
    settings to DOS, and to examine current settings. DOS keeps the
    date and time of the last modification of a file in a packed format.
    Several procedures require a time parameter to be passed in packed
    format.
 
    The procedure SetFTime requires a time parameter in packed format.
    Fill the fields of a DateTime record with values for date and time
    settings, and pass the filled record to the PackTime procedure.
 
    The procedures FindFirst, FindNext, and GetFTime return a date and
    time in packed format. Unpack a packed time to a DateTime record by
    passing it to the UnpackTime procedure.