| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

date_diff

#include "sfldate.h"
void
date_diff (
    long date1, long time1,             /*  Date and time                    */
    long date2, long time2,             /*    minus this date and time       */
    long *days, long *csecs             /*  Gives these values               */
)

Synopsis

Calculates the difference between two date/time values, and returns the difference as a number of days and a number of centiseconds. The date can be any date since some distant epoch (around 1600). The calculation is date1:time1 - date2:time2. The returned values may be negative.

Source Code - (sfldate.c)

{
    *days  = date to days  (date1) - date to days  (date2);
    *csecs = time to csecs (time1) - time to csecs (time2);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation