[Oberon] Re. Install your own OS

John Drake jmdrake_98 at yahoo.com
Tue Oct 18 17:24:19 CEST 2005



--- easlab at absamail.co.za wrote:

> There's no "DateFormat= DD.MM.YYYY" in my "
> Oberon.Text ".
> Perhaps in your Win version ?

Hmmmm...it's that way in WinAos, but not in
BlueBottle.  So I looked in the source
code for Strings.Mod.  It looks for a file
"System.DateFormat" and "System.TimeFormat".
If those files are there it reads in a
string for the date and time formats.  
If not it defaults to "DD.MM.YYYY" and
"HH:MM:SS".  So try creating a file
"System.DateFormat", put the format
string in there you want and see what
happens.

A better design would be to export a
procedure that allowed the programmer to
set the date and time format strings
at runtime such. i.e.

Strings.SetDateFormat("MM.DD.YYYY");

or BETTER

Dates.SetDateFormat("MM.DD.YYYY");

Regards,

John M. Drake


		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs


More information about the Oberon mailing list