| iMatix home page | << | < | > | >> |
SFL Version 2.10 |
#include "sfldate.h" long default_century (long *date)
Supplies a default century for the year if necessary. If the year is 51 to 99, the century is set to 19. If the year is 0 to 50, the century is set to 20. Returns the adjusted date.
{ if (GET_CENTURY (*date) == 0) *date += (GET_YEAR (*date) > 50? 19000000L: 20000000L); return (*date); }
| << | < | > | >> | Copyright © 1996-99 iMatix Corporation |