Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#os4units]

CompareDates

Compares two datestamps

Declaration

Source position: amigados.pas line 2562

function CompareDates(

  const Date1: PDateStamp;

  const 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