[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
USAGE
signed int sccdsdiff(
signed long *diff,
signed char *date1,
signed int format1,
signed char *date2,
signed int format2 );
PROTOTYPE IN
sc_clock.h
DESCRIPTION
sccdsdiff returns the difference in days between date1 and date2.
The two ASCIIZ date strings can be in any order, but the styles
(format1, format2) must be valid.
Date string styles:
SC_GREGOR mm/dd/yy
SC_GREGORL mm/dd/yyyy
SC_JULIAN yyyy/ddd
SC_YMD yyyymmdd
SC_DMY ddmmyy
EXAMPLE
#include <stdio.h>
#include <softc.h>
#include <sc_clock.h>
void main()
{
signed long d;
sccdsdiff(&d, "19890213", SC_YMD,"19881217", SC_YMD);
printf("%ld",d);
}
See Also:
sccds2s
sccdi2s
sccdsvalid
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson