[MLton-user] Strange date behaviour

Joe Hurd joe at gilith.com
Thu Jul 5 09:06:40 PDT 2007


Am I being stupid here, or is Date.fmt throwing a bogus exception?

I'm experiencing this on both Mac OS X (i386) and Linux (i386).

Joe

fel-hurd:~$ mlton
MLton MLTONVERSION (built Mon Oct 30 23:08:10 2006 on frogbat.local)
fel-hurd:~$ cat t.sml
print (Date.fmt
         "%d/%m/%Y"
         (Date.date
            {year = 1876, month = Date.Apr, day = 19,
             hour = 0, minute = 0, second = 0,
             offset = NONE}));
fel-hurd:~$ mlton t.sml
fel-hurd:~$ ./t
unhandled exception: Date
fel-hurd:~$



More information about the MLton-user mailing list