Note: The class DATE_TIME_CODE is based on the date/time to string conversion suggested by TCAM. DATE / TIME to STRING Conversion ---------------------------------------------------------------------------- DATE / TIME to STRING format conversion codes The following list format conversion codes. These are all nicked direct from Excel: Code Description dd day - numeric [0]dd day - numeric (padded with '0' to 2 figures) ddd day - text (3 letters e.g "Mon", "Tue") yyyy year - numeric (4 figures) yy year - numeric (2 figures) mm month - numeric [0]mm month - numeric (padded with '0' to 2 figures) mmm month - text (3 letters e.g "Dec", "Jan") hh hour - numeric (24 hour clock scale by default) [0]hh hour - numeric (padded with '0' to 2 figures) hh12 hour - numeric (12 hour clock scale) mi minute - numeric [0]mi minute - numeric (padded with '0' to 2 figures) ss seconds - numeric [0]ss seconds - numeric (padded with '0' to 2 figures) ff fractional seconds - numeric (precise to figures) : / - separators e.g. "03/Aug/97" , These are some examples of suggested STRING output, together with the format codes that would create that output: Code Output yy/m/dd 97/8/18 mmm-dd-yy Aug-18-97 dd,mm,yyyy 18,Aug,1997 hh-mi-ss 13-06-32 hh12,mi,ss 1,06,32 pm hh12:mi:ff 1:06:32.25 pm hh:mi:ff3 13:06:32.248 [0]mm/dd/yy hh12:mi:ff3 08/18/97 1:06:32.248 pm --|---------------------------------------------------------------- --| EiffelTime: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2000 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building, 2nd floor --| 270 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support e-mail --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------