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

 

default_century

#include "sfldate.h"
long
default_century (long *date)

Synopsis

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.

Source Code - (sfldate.c)

{
    if (GET_CENTURY (*date) == 0)
        *date += (GET_YEAR (*date) > 50? 19000000L: 20000000L);
    return (*date);
}

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