TIMEDATE.MAC

TIME FORMAT CONVERSION

 

CODHMS converts HMS table to series of HMS codes

HMSCOD converts series of HMS codes to HMS table

HMSSEC converts second of day to HMS vector

HMSSTR converts HMS string to HMS vector

SECHMS converts HMS vector to second of day

STRHMS converts HMS vector to HMS string

TIMEDELIM separator in time strings

 

DATE FORMAT CONVERSION

 

CENTURY default century in 2-digit dates

CODYMD2 converts 2-digit YMD table to series of 2-digit YMD

CODYMD4 converts 4-digit YMD table to series of 4-digit YMD

DATEDELIM separator in date strings

JULYMD2 converts 2-digit YMD vector to Julian integer

JULYMD4 converts 4-digit YMD vector to Julian integer

STRYMD2 converts 2-digit YMD vector to 2-digit date string

STRYMD4 converts 4-digit YMD vector to 4-digit date string

YMD2 converts 4-digit YMD table to 2-digit YMD table

YMD4 converts 2-digit YMD table to 4-digit YMD table

YMDCOD2 converts series of 2-digit YMD codes to 2-digit YMD

YMDCOD4 converts series of 4-digit YMD codes to 4-digit YMD

YMDJUL2 converts Julian integer to 2-digit YMD vector

YMDJUL4 converts Julian integer to 4-digit YMD vector

YMDSTR2 converts 2-digit date string to 2-digit YMD vector

YMDSTR4 converts 4-digit date string to 4-digit YMD vector

YMDVEC2 converts 4-digit YMD vector to 2-digit YMD vector

YMDVEC4 converts 2-digit YMD vector to 4-digit YMD vector

 

DATE-TIME FORMAT CONVERSION

 

CODYMDHMS2 converts 2-digit YMDHMS table to 2-digit YMDHMS codes

CODYMDHMS4 converts 4-digit YMDHMS table to 4-digit YMDHMS codes

DATETIMESEP separator between date and time

JULYMDHMS2 converts 2-digit YMDHMS vector to Julian date

JULYMDHMS4 converts 4-digit YMDHMS vector to Julian date

STRYMDHMS2 converts 2-digit YMDHMS vector to date-time string

STRYMDHMS4 converts 4-digit YMDHMS vector to date-time string

YMDHMS2 converts 4-digit YMDHMS table to 2-digit YMDHMS

YMDHMS4 converts 2-digit YMDHMS table to 4-digit YMDHMS

YMDHMSCOD2 converts 2-digit YMDHMS codes to 2-digit YMDHMS table

YMDHMSCOD4 converts 4-digit YMDHMS codes to 4-digit YMDHMS table

YMDHMSJUL2 converts Julian date to 2-digit YMDHMS vector

YMDHMSJUL4 converts Julian date to 4-digit YMDHMS vector

YMDHMSSTR2 converts 2-digit date-time string to YMDHMS vector

YMDHMSSTR4 converts 4-digit date-time string to YMDHMS vector

YMDHMSVEC2 converts 4-digit YMDHMS vector to 2-digit YMDHMS

YMDHMSVEC4 converts 2-digit YMDHMS vector to 4-digit YMDHMS

 

MISCELLANEOUS DATE MACROS

 

DAYDATE2 determines day of week from 2-digit YMD vector

DAYDATE4 determines day of week from 4-digit YMD vector

DAYNAME outputs name of day of week from its number

DAYNO determines number of day of week from its name

GREGCORR2 corrects Julian date from JULYMD2 outside 1900-2100

GREGCORR4 corrects Julian date from JULYMD4 outside 1900-2100

MONTHNAME outputs month name from month number

MONTHNO determines month number from month name