Date Utilities

  #include <vv_sys.h>
   
long date_diff (UCHAR *date1_stp, UCHAR *date2_stp, UCHAR *format_stp)

Returns the number of days between the two dates

int date_frjul (UCHAR *date_stp, long jul_date, UCHAR *format_stp)

Converts a Julian date to a date string

int date_frnums (UCHAR *date_stp, int day, int month, int year, UCHAR *format_stp)

Formats a date string for the given day, month, and year

int date_get (UCHAR *date_stp, UCHAR *format_stp)

Gets the operating system date

int date_isleapyr (int year)

Determines if the specified year is a leap year

long date_tojul (UCHAR *date_stp, UCHAR *format_stp)

Converts a date string into a Julian date

int date_tonums (UCHAR *date_stp, int *dayp, int *monthp, int *yearp, UCHAR *format_stp)

Converts a date string to its integer components

void se_datefmt (UCHAR *format_stp)

Sets the system date format (SYSDATEFMT)



Home Contents Previous Next