DTTOMDY C-3
Copyright (C) 1994-95 Conetic Software Systems, Inc.
All names, products, and services mentioned are the trademarks of their respective organizations.
NAME
dttomdy - convert DATE to month, day, and year
SYNOPSIS
#include
int dttomdy (date, month, day, year)
DATE date;
int *month;
int *day;
int *year;
DESCRIPTION
Dttomdy converts the date value date to three integers, the
month, the day, and the year. The values are stored into the
parameters month, day, and year, that are pointers to integers.
The DATE value parameter represents the number of days beginning
with January 1, 1800. January 1, 1800 has a DATE value of 1. The
year value returned is greater than 1800. If there are no errors,
dttomdy returns a non-zero value.
EXAMPLES
DATE billdate;
int month, day, year;
dttomdy (billdate, &month, &day, &year);
DIAGNOSTICS
If date is less than or equal to zero, the other parameters are
set to zero and the function returns a zero.