 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mikael Eriksson Guest
|
Posted: Wed Oct 18, 2006 8:13 am Post subject: XMLTimeToDateTime non-timezoned values |
|
|
Hi!
The dateTime data type in a xml-file may be timezoned or non-timezoned.
http://www.w3.org/TR/xmlschema-2/#dateTime
2001-01-01T10:00:00 is non-timezoned.
2001-01-01T10:00:00Z and 2001-01-01T10:00:00+00:00 is timezoned.
The XMLTimeToDateTime function has a parameter AsUTCTime.
When AsUTCTime is true the function converts the value to TDateTime in
UTC timezone, when AsUTCTime is false it converts the value to a
TDateTime in the timezone that I am currently in.
XMLTimeToDateTime treats a non-timezoned value as timezoned with the
timezone UTC (GMT).
Should it really do that?
I believe that XMLTimeToDateTime should return the value as is when it
is non-timezoned.
Anyone has any thoughts about this?
Should I take this to QC?
/Micke |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|