[Mono-list] Patch for DataTime.cs

Alan Tam Tam@SiuLung.com
Fri, 28 Feb 2003 01:57:56 +0800

Dear elan,

Interestingly, I am also doing something related to DateTime, but in
System.Xml.XmlConverter. It seems that in Mono, "zzzzzz" does not work. And I
cannot find its definition in MS's doc too.

The three characters are Byte Order Mark (BOM) of UTF-8 encoding. It should
have been surpressed by your terminal, if it is implemented correctly.


----- Original Message -----
From: "Elan Feingold" <efeingold@mn.rr.com>
To: "'Mono-List'" <mono-list@ximian.com>
Sent: Friday, February 28, 2003 1:45 AM
Subject: [Mono-list] Patch for DataTime.cs

A few things:

- FileTime is expressed in Universal time, and as such must be converted
before subtracting the magic offset (patch 1)

- Strings in the format "2003-02-27T10:05:03-11:00" (note the timezone
at the end) *must* be parsed by DateTime.Parse() for compatibility with
Microsoft. This came up in my work with XML [de]serialization, which
I'll send a patch for shortly (patch 1)

- The date time format patterns didn't match MS output (patch 2)

I've been running my test program (also included) on XP and Linux to get
them to match.

Also, a question. Whenever I run any .NET program under Mono, always I
get three characters of garbage printed at the start "" (not sure if
these will show up in email). Any ideas?

Best regards,