BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XMLTimeToDateTime non-timezoned values

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
Mikael Eriksson
Guest





PostPosted: Wed Oct 18, 2006 8:13 am    Post subject: XMLTimeToDateTime non-timezoned values Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.