« Avalon & Aero | Main | MCE の DVD ライブラリ化 »

2005.03.19

DateTime & XML

.NET 1.x で日付や時刻を XML に入れる場合、結構な確率で問題に出会う。私が Visual Studio .NET 2002 のベータ版で最初に作ったのが XML Web Service だったため、いきなり問題にぶつかり、米 MS に報告したが、問題が大きすぎてもう直せない、という結果に終わった。これが、Visual Studio 2005 / .NET Framework 2.0 では修正される。

.NET の BCL (Base Class Library) チームが 1 日 blog day を取って書いた記事群 のひとつに、What are the new DateTime features in Whidbey がある。VS 2005 の機能リストに DateTime の修正が上がっていたので期待していたが、この記事にはかなり詳細が書いてある。

問題は、DateTime がタイムゾーンにかかわる情報を持っていないが、XML の dateTime は持っている、という違いに起因する。このため、DateTime を XML Serialize/Deserialize する場合、.NET 1.x はそれが常にローカル時間であると仮定した。これにより、以下のような問題が起こる。

  • タイムゾーンの違うサーバーの XML Web Service を呼び出した場合や、XML Serialize や DataSet を XML で書き出して、異なるタイムゾーンの PC でその XML を読み込んだ場合に、時刻がずれてしまう。
  • 誕生日などの日付を書き出しても、+0900 とタイムゾーン情報が XML に付いてしまう。
  • DateTime.Min や DateTime.Max を利用する場合、タイムゾーンの調整のために加減算されることで範囲を超えてしまい、例外になってしまう。

修正した、というので、64 bit だった DateTime が大きくなったかと思っていたが、もともと DateTime の 64 bit のうち 2 bit が未使用で、そこを使ったという。 性能に影響を与えずに修正された、というのは非常にうれしい。

|

« Avalon & Aero | Main | MCE の DVD ライブラリ化 »

Comments

so informative, thanks to tell us.

Posted by: Sexeasere | 2010.09.30 at 11:46 AM

I have been surfing online more than 2 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. Personally, if all website owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

Posted by: lash extensions | 2014.07.03 at 11:59 PM

It's nearly impossible to find well-informed people on this topic, but you seem like you know what you're talking about! Thanks

Posted by: makeup vanity furniture | 2014.07.14 at 11:51 AM

To top your beach experience, have a frozen margarita. The beach resorts in Mexico have special kid-clubs for children of all age groups. Alternatively, have her anything antique that she's always desired.

Posted by: Ecologica.bg | 2014.12.20 at 10:58 AM

There is a growing trend of dressing uup in business casuals which is a kind of dressing style that is acceptable in some work environments. If you really want to get through security quickly and wijth no problems, the it is important that you understand how to pack efficiently. Wouldn't you think that memos to legal staff about rules of dress would be sensitively written and happily received. In many offices there's a regular business fashion dress code and hence the rules are different.

Posted by: ini jenis peluang usaha makanan yang bisa kita pilih | 2015.01.03 at 08:44 AM

Howdy would you mind stating which blog platform you're using? I'm planning to start my own blog soon but I'm having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I'm looking for something completely unique. P.S Apologies for getting off-topic but I had to ask!

Posted by: ielts school | 2015.01.04 at 08:56 PM

On sale now, the avant garde French trend brand has teamed up with Converse, but once more, to create a truly one in all a form sneaker.

Posted by: Versace Sneakers | 2015.01.04 at 09:21 PM

Sue and Wesley lay there for a while and zoned out of consciousness as they rocked. "Lisa stepped forward and placed her hand on Kyla's firm cheeks. Lifting my hands, I pushed her hands away and grabbed her tits myself.

Posted by: Scott Lyons Porn Videos Free Sex Movies | | 2015.01.04 at 09:35 PM

Now, let's discuss about Forex No - Name - Bot from Juliya Ivanov and just how it might help you. Experienced traders around me all recognize that most novice traders' difficulty lies in knowing how to differentiate what is actually happening in the market with what we really perceive and how we interpret these conditions. With this condition we get some pretty good short-term moves in the marketplace.

Posted by: forex | 2015.01.04 at 10:09 PM

It was unfortunate for Microsoft that they could only utilize a DVD drive in the Xbox 360, especially after the Fail that was HD-DVD. Sit down with the kids and create fun ids for them. SCUF are now making further additions to their already significant product range for Xbox 360, bringing you their Yin and Yang concept. With the intention of way not now the games you own, but furthermore even the way you firm up your instrument panel -- pins and all.

Posted by: Xbox One Assassins Creed Unity Bundle | 2015.01.04 at 10:22 PM

I enjoy reading an article that can make men and women think. Also, many thanks for permitting me to comment!

Posted by: Cheap Nike Free Run 2 | 2015.01.05 at 07:39 AM

Having read this I thought it was very informative. I appreciate you spending some time and energy to put this article together. I once again find myself spending a significant amount of time both reading and leaving comments. But so what, it was still worthwhile!

Posted by: ugg baratas | 2015.01.05 at 07:52 PM

I have read so many articles concerning the blogger lovers except this article is truly a pleasant paragraph, keep it up.

Posted by: Cheap Nike Free Run 2 | 2015.01.05 at 10:59 PM

I always used to study piece of writing in news papers but now as I am a user of net therefore from now I am using net for articles or reviews, thanks to web.

Posted by: simulateur rachat credit | 2015.01.14 at 11:57 AM

Thanks for finally writing about >DateTime & XML: さすらいの .NET プログラマー

Posted by: Daniel chavez moran | 2015.01.17 at 11:59 AM

Do you have a spam problem on this website; I also am a blogger, and I was wondering your situation; many of us have created some nice practices and we are looking to swap techniques with others, please shoot me an email if interested.

Posted by: Joao Gerundo | 2015.01.19 at 05:14 PM

wonderful issues altogether, you simply gained a brand new reader. What would you suggest in regards to your submit that you just made some days in the past? Any positive?

Posted by: disc jockey johnstown pa | 2015.01.21 at 04:06 PM

Everything is very open with a very clear explanation of the issues. It was truly informative. Your website is extremely helpful. Thanks for sharing!

Posted by: charles abbott of provo | 2015.01.25 at 05:13 PM

Thanks for finally talking about >DateTime & XML: さすらいの .NET プログラマー

Posted by: attorney directory in baltimore city | 2015.02.03 at 10:04 AM

Excellent beat ! I would like to apprentice while you amend your site, how could i subscribe for a blog site? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear concept

Posted by: http://outsource.net/ | 2015.02.07 at 06:23 AM

Hmm it appears like your site ate my first comment (it was extremely long) so I guess I'll just sum it up what I submitted and say, I'm thoroughly enjoying your blog. I too am an aspiring blog writer but I'm still new to the whole thing. Do you have any suggestions for inexperienced blog writers? I'd definitely appreciate it.

Posted by: June | 2015.03.12 at 07:40 AM

Thеy аlso have men and women гeady to hook uƿ and meet you tοnight. You ϲan ցet intօ it and transform yoսr social life into wɦat you deserve. You can call one of tɦeir frеe locl chst triɑls numbers to start yoսr jоսrney too find a new date, friеnd, or loνeг. Apaгt from this, if you aree a shy or reservеd person ɑnd callіng their frеe local chat lin trials numbers, thеn they can helρ you expand your world. Say something abouyt her not resembling the сharactеristics of that zοdiac sign, etc. That will gеt hеr to ߋpеn up and dеscriibe herself a bit more. Where ɑre yoou from?: A common question, but you сan use it as a ƅackսp iif еverything else fаils. The point is, you simply must ensure a coսple of minutes of chіt chat befοre you move on to the following іntermediate level questions. These days there aare many options for meeting other singlеs such as Internet dɑting, phone chat, dating aցencies. If you combіne any of thеse metɦods witɦ the more traditіоnal methods of meetіng ɑ potentiɑl date, like meеting through friends or family cоnnections, you ѕtаnd a very good chance of meeting thgаt someօne speϲial. One of the ԁating serviсes that iѕ growing in popularіty is personal chat lines where membеrs uѕe their phߋnes too connect with other singles. Upon joining, members can record a profile message that tellѕ other membеrs аboujt theіr personalitіes and ѡuat kind of date they are loоkming for. But these days technology has givewn the break-free communicatіon oρtionns with աide varietү of utilitieѕ. Ιt has marked patentеd its trend arߋund the glob like bringing iit undеr one umbrella. First Telephone discovery by GraҺam Bell was ɑn effort to convеrse thrߋugh wires but later it broսցht the еarth in a bottle and cսt shoгt the space. And the much evaluated form օf ρhnone is Cell ƿhone, which brοught radiсal change in cοnversation and tеϲhnology throughout the ԝorld. Ύoս cаn gߋ a ѕtep further and dedicate some ѕongs too. Having done that, ԝhen she says thank yoս, start alking to her aboսt what sshe doеs and how does ѕhe know the frіends ƴou shaгe in common. Another way of staгting a conversatiоn is by asking about something yоu shaгe in common. If you are in the same collegе, you cɑn tɑlk abօut a particular assignment οr a trip that іs getting decided. Thereafter, these lines will offer variouѕ chargeѕ and planns for continuеd usage. Upon үour initial call to tɦe local annd live Gay chat lіne, yօu will be gгeeteԁ witҺ a pre-гecоrded voice, ѕuppoгteԀ by аn automateɗ system. The best ɑdѵicе is to follow thе instruϲtive prompts ɑnd seleϲtions as ԁirecteԁ. In most сaseѕ, the system wwill provide you աith Ԁeѕignated access coxes to write doաn fоr future uѕagе. You cɑn't Ьe lonely anywhere in thhe world. Facility of phlne cҺat offers you to commսniсate іn tοo nadroѡ means and time span. Ρhone companiеs sortеd them accessiblе and cheap for everyone. The only thіng that yоu are going tο get apprehensive about is to know ɦow to սsе this stuff and then you are onn the go. Meetiong up with new peoƿle of different caste, religipn and age Һas becomе easy with sսch ѕervices. Around all over thee internet there is vast range of webѕitеs that оffers phоne chat line bу conneϲting your phone. Ambitіon is the willingness to kll the things yyou love and eat thhem too staʏ alive. ӏ am a bomb teсhniciаn. Thе real trouble with гeality is that theгe'ѕ no background music. War ԁoesn't deteгmine wҺo's right. War dеtеrmines who's left. I used uрp all my sick daʏѕ, so Ι'm сɑlling in dead. Yߋu need tto find out that with whom yߋս enjoƴ the most and with wwhom you are most comfогtable. In dating, men who aгe outgoing and outspoken havgе always gaіneԀ ann upper hand. When it comes to сhatlines then shy and lonelƴ have the equal opportunity. Peoplе ɗοn't easily lіke to leave tǥeir housе aree getting easily conneϲted witrh the chat-lines. Rіght then, two ρarticular things ɦave takеn place here. Νow let me askk you something. If ƴoս could begin using a small number of succesѕfսl openers, tߋ chat to any kind of woman ƴou desire and alreadʏ knoww that the woman is going to ǥive yoս her cell phone number sο you can get tߋgether aցaіn, would you taκe advantage oof them? Surely yoս would, viгtually all men woulԁ. Ҭɦe primary purpose to thіѕ form of phone communication is for Gay menn to ϲhst with otҺer Ԍay mеn, іn order tο becomе briefpy acquainted, arгange and meet up for what is generally anonymous ɑnd casual sex. The two best sourcеs to locate telephone numbers for loсal and live phne chat lines are either by visitting adult video, bοok and noveltу-type ѕtогes in youг area, оr, on the Internet. Sսch stores will have local or area publications, generally in the format of a tabloid, and, in mοst cases, are free. Eveгything you like is bad for уoս in somme way. It comes to rescuе thе ρeople wҺen the services are dօwn. Rеvamping your social life ɦas never been easier. Getting baϲk into tҺe dating scеne after yokur social hіbernatіon has neѵer been more convenient. Learn how ɡrеat dates aand great relationshіps are made the modern way. Soome most pгominent cɦat lines in this regard are: Lɑtino pɦone dɑting, Hispanic phone dating and Spanish phone Ԁating.Almoѕt all girls keep on getting invitations and friendsɦip requеsts іin bulkk frօm guhs they don't evеn know. TҺis is not only outright irritating but also a grand task. How was the party last nigҺt? Within thе past few yeaгs, soсietyhaѕ become less obtuse iin regards to thе social and pеrsonal lives of gaү people, ѡelcoming a wider rangee of dating seгvices thɑt cater specifically for the needs οff young gay pеople. Boytom line; go wіtҺ your "gut" instinct. If yyou are a ρoѡеr user and enjoƴing theѕe chat lineѕ then most services will hаѵe a cheapeг credit czrd option - buy your minutes in advance and accеss the ѕervice thгougɦ a 0800 freefone number. Othber than the heer obvioսѕness of the place, nightclubs are tօо noisy and too full of drunks to allow you too make an impɑct on the girl. Ҭhey neеd the work to ƅe automated and this can be accompliѕhed wth the Һelp of phone chat lines. Уоur modulation of voicе iis very important while сhatting. That is ԝhy moѵilе chat lines are the perfect way for you to meet that ѕpecial someone! All you need iѕ your cell phone and youгself, it is thɑt easy.

Posted by: lapdance | 2015.03.29 at 10:10 PM

I do accept as true with all of the ideas you've introduced in your post. They are very convincing and can definitely work. Nonetheless, the posts are very brief for newbies. May just you please prolong them a little from subsequent time? Thank you for the post.

Posted by: 4everproxy | 2015.04.05 at 12:36 PM

Since the admin of this website is working, no doubt very quickly it will be well-known, due to its quality contents.

Posted by: search match.com | 2015.04.06 at 11:30 PM

Do you mind if I quote a few of your posts as long as I provide credit and sources back to your website? My blog site is in the very same niche as yours and my visitors would definitely benefit from a lot of the information you provide here. Please let me know if this ok with you. Thanks!

Posted by: online binary options | 2015.05.09 at 09:00 AM

The health of women's nipple color or areola is pale red or brown powder. For example, in 2011, there were approximately 7,100 geriatricians in the United States'a decline of 22 percent since 2000. Natural Allopathic Medicine is a book authored by Dr.

Posted by: Jonathan William Mikula | 2015.06.15 at 12:50 PM

Just what I have actually implemented is an off grid power system.

Posted by: Adele | 2015.06.28 at 06:29 AM

Wine, pineapple, lime, lemon or papaya juice or any sort of vinegar will certainly all have this impact on the steak.

Posted by: Blank Fire Doors | 2015.07.02 at 04:46 PM

Hello There. I found your blog using msn. This is a really well written article. I will be sure to bookmark it and return to read more of your useful info. Thanks for the post. I will definitely return.

Posted by: agario names with icons | 2015.08.14 at 04:31 PM

Thank you, I have recently been looking for information approximately this topic for a while and yours is the greatest I've discovered so far. However, what in regards to the conclusion? Are you sure in regards to the source?

Posted by: boom beach Trailer flame thrower | 2015.08.17 at 08:26 AM

I blog often and I genuinely thank you for your content. Your article has truly peaked my interest. I'm going to book mark your site and keep checking for new details about once a week. I opted in for your Feed as well.

Posted by: binary options chart | 2015.09.01 at 07:05 PM

MOVIE NIGHT BONANZA ' Who wouldn't love a movie night gift basket. For men, the store features watches, sunglasses and fragrances only. Once LV style was changed into a beige and brown stripes design in 1876.

Posted by: michael kors canada | 2015.10.18 at 11:11 AM

Post a comment



(Not displayed with comment.)




TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/2111/3350728

Listed below are links to weblogs that reference DateTime & XML:

» .NetのDateTimeにタイムゾーンの概念を [中の技術日誌ブログ]
.NetのDateTimeにタイムゾーンの概念を [Read More]

Tracked on 2005.03.20 at 01:22 AM

« Avalon & Aero | Main | MCE の DVD ライブラリ化 »