Online Eiffel Documentation
EiffelStudio

DATE / TIME to STRING Conversion

The following table lists format conversion codes.
CodeDescription
ddday - numeric
[0]ddday - numeric (padded with '0' to 2 figures)
dddday - text (3 letters e.g "Mon", "Tue")
yyyyyear - numeric (4 figures)
yyyear - numeric (2 figures)
mm month - numeric
[0]mmmonth - numeric (padded with '0' to 2 figures)
mmmmonth - text (3 letters e.g "Dec", "Jan")
hhhour - numeric (24 hour clock scale by default)
[0]hhhour - numeric (padded with '0' to 2 figures)
hh12hour - numeric (12 hour clock scale)
miminute - numeric
[0]miminute - numeric (padded with '0' to 2 figures)
ssseconds - numeric
[0]ssseconds - numeric (padded with '0' to 2 figures)
ff<n>fractional seconds - numeric (precise to <n> figures)
':', '/', '-' and ','separators e.g. "03/Aug/97"
These are some examples of output with their associated format code:
CodeOutput
yy/m/dd97/8/18
mmm-dd-yyAug-18-97
dd,mm,yyyy18,Aug,1997
hh-mi-ss13-06-32
hh12,mi,ss1,06,32 pm
hh12:mi:ff1:06:32.25 pm
hh:mi:ff313:06:32.248
[0]mm/dd/yy hh12:mi:ff308/18/97 1:06:32.248 pm