Changing Local TimeZone in a Program
Tech-Archive recommends: Fix windows errors by optimizing your registry
Hi,
I need to if a calendar function works for different time zones. I can
get the time of UTC and local time by doing:
DateTime utc = System.DateTime.UtcNow;
DateTime local = System.DateTime.Now;
That would give me UTC and local time, so in my case, it would be
Pacific Time. But how can I change my timezone so that I can get the
local time in the East Coast, for example.
With thanks,
Brian
.
Relevant Pages
- Re: What time is it? Issues with Local time, system time, DST
... Apparently CE stores time in local time, ... be for local time, not UTC. ... RTC, so that when processor is asleep or off, onboard batteries ... you can't know the UTC unless you also have, in some non-volatile ... (microsoft.public.windowsce.platbuilder) - RE: Best practice for TOD clock
... returns the UTC time. ... local applications that log with local time) for one hour in the fall. ... duplicate timestamps if the timestamps are using UTC time. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... (bit.listserv.ibm-main) - International datetime comparisons in real-time web apps
... UTC and internationalization (cultures, SQL server CONVERT function, how ... Players can place a bet on the event's outcome, up to one minute before it ... deactivate, in Italian local time. ... But this means, the time part of the Italian local time, ... (microsoft.public.dotnet.framework.aspnet) - Re: Time Bases and Timekeeping (was: Re: Valentins day :-)
... UNIX systems usually store the time as UTC, and then adjust for the local time zone. ... The display of UTC/GMT is common when servers don't have a good mechanism for displaying local time on a per-process basis, or when there's a specific reason to use UTC/GMT for all external operations; when the end-users are operating across time zones. ... Yes, I know that UTC and GMT aren't quite the same time, and that time_t only approximates UTC, and that the approximation of UTC isn't quite the same as TAI, either. ... (comp.os.vms) - [Full-Disclosure] While were on the subject of Microsoft and their patches...
... prevent any unauthorized changes to the file. ... is converted to local time. ... To find the difference between UTC and local ... even the Jerusalem virus preserved date stamps. ... (Full-Disclosure) |
|