Sun Java System Web Server 7.0 Update 7 NSAPI Developer's Guide

util_later_than() Function

The util_later_than function compares the date specified in a time structure against a date specified in a string. If the date in the string is later than or equal to the one in the time structure, the function returns 1. Use this function to handle RFC 822, RFC 850, and ctime formats.

Syntax

int util_later_than(struct tm *lms, char *ims);

Return Values

1 if the date represented by ims is the same as or later than that represented by the lms, or 0 if the date represented by ims is earlier than that represented by the lms.

Parameters

tm *lms is the time structure containing a date.

char *ims is the string containing a date.

See Also

util_strftime() Function