Daylight saving

  • Thread starter Thread starter Thana N.
  • Start date Start date
T

Thana N.

Suppose I want to write program to get Index value of stock market all
around the world at the open and close time of each stock market which
specify a local time. How can I do this with a daylight saving time concern?
Is there FCL support?

Thanks,
Thana N.
 
Here are some relevant resources:

http://www.gotdotnet.com/team/clr/bcl/TechArticles/techarticles/datetimeguid
elines.doc
http://www.gotdotnet.com/team/clr/bcl/TechArticles/techarticles/DateTimeFAQ/
FAQ.aspx

If you want to record local times in such a way that they can be compared
accurately accross time zones and independently of DST, you must record the
local time zone offset alongside each instance. Use
TimeZone.CurrentTimeZone.GetUtcOffset(DateTime) to record this for a given
point in time. Unlike Win32, this calculation can calculate a different
offset in a past and future.

What do you mean by FCL support? If you mean conversion between arbitrary
time zones, that is not currently present in the Framework, but may be in a
future version.


--------------------
| From: "Thana N." <[email protected]>
| Subject: Daylight saving
| Date: Thu, 29 Jan 2004 18:48:09 +0700
| Lines: 9
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework
| NNTP-Posting-Host: adsl-ta-20.inet.co.th 203.150.210.20
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework:63924
| X-Tomcat-NG: microsoft.public.dotnet.framework
|
| Suppose I want to write program to get Index value of stock market all
| around the world at the open and close time of each stock market which
| specify a local time. How can I do this with a daylight saving time
concern?
| Is there FCL support?
|
| Thanks,
| Thana N.
|
|
|
 
Back
Top