[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
USAGE
signed int sccds2lx(
signed long *date,
signed char *string,
signed int format );
PROTOTYPE IN
sc_clock.h
DESCRIPTION
sccds2lx converts an ASCIIZ string into a long date. The date
string must be of the style format. This date is a calculated count of
days since 1/1/0001. No attempt has been made to adjust for changes made
in the calendar. This function is used predominantly for date arithmetic,
calculating elapsed days, etc.
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 l;
sccds2lx(&l,"19890323",SC_YMD);
printf("%ld",l);
}
See Also:
sccdl2sx
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson