% Purpose % converts YYMMDDhhmmss.fff time representation to a time string. % % Synopsis % time_str = mexeps('totstr',time,format_str) % % Description % It converts single time from YYMMDDhhmmss.fff format to a time % string. The output format is spefied by input argument format_str. % The format string is a short hand notation for how the date and % time are to be written. The position and number of the key letter % determine the string format. % % A table of the meanings follows. % % D day formatted as 1-31 % DD day formatted as 01-31 % DDD day of week as 3 character name % DDDD day of weed, full name % % M month formatted as 1-12 % MM month formatted as 01-12 % MMM month formatted as 3 character name % MMMM month formatted as full name % % YY year written as last 2 digits % YYYY year written as 4 digits % % h hour written as 1-24 % hh hour written as 01-24 % % m minute written as 1-59 % mm minute written as 01-59 % % s second written as 1-59 % ss second written as 01-59 % % f fraction of second written as 0-9 % ff fraction of second written as 00-99 % fff fraction of second written as 000-999 % % Any character not in the above table is copied to the output % string in the proper relative position. % % Examples % 1. "D-MM-YY hh:mm" yields the string "7-02-89 21:16" % % mexeps('totstr',980702211600,'D-MM-YY hh:mm'); % % 2. "DD MMM YYYY" yields the string "07 FEB 1989" % % mexeps('totstr',980702211600,'DD MMM YYYY'); % % See Also % totarray %