Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

CompareDates

Compares two datestamps

Declaration

Source position: amigados.pas line 2127

function CompareDates(

  date1: PDateStamp;

  date2: PDateStamp

):LongInt;

Arguments

date1

  

DateStamps to compare

date2

  

DateStamps to compare

Function result

<0, 0, or >0 based on comparison of two date stamps

Description

Compares two times for relative magnitide. <0 is returned if date1 is later than date2, 0 if they are equal, or >0 if date2 is later than date1. NOTE: this is not the same ordering as strcmp!

See also

DateStamp

  

Fills the structure with the current time. Time is measured from 1. Jan. 1978.

DOSStrToDate

  


Documentation generated on: 2021-07-30