473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

help with time zone issues

lf
Hi,
I need to do some timezone conversions and am not sure how to do what I want
to do with the 1.1 framework (which is what we are using here). My issue is
this: I have information that I need to submit to a company that is in a
part of the US that does not observe daylight savings. So, for part of the
year they are on the same timezone as I am and for part of the year they are
an hour behind. I know that I can store all of my information in UTC, but am
not sure how to convert it out to a specific time because the offset I would
have to use is different at different times of the year. Is there a way that
I can find out if I am currently on daylight savings time? This would tell
me to add 1 from the offset that I use for the rest of the year. Have looked
everywhere for an answer to this one and can't find it. Can anyone suggest
something for me?

Thanks in advance,

Linda
Oct 16 '06 #1
1 1082
lf wrote:
I need to do some timezone conversions and am not sure how to do what I want
to do with the 1.1 framework (which is what we are using here). My issue is
this: I have information that I need to submit to a company that is in a
part of the US that does not observe daylight savings. So, for part of the
year they are on the same timezone as I am and for part of the year they are
an hour behind. I know that I can store all of my information in UTC, but am
not sure how to convert it out to a specific time because the offset I would
have to use is different at different times of the year. Is there a way that
I can find out if I am currently on daylight savings time? This would tell
me to add 1 from the offset that I use for the rest of the year. Have looked
everywhere for an answer to this one and can't find it. Can anyone suggest
something for me?
You don't need to worry about adding anything. Just use
DateTime.ToUniversalTime and DateTime.ToLocalTime. They should
automatically take Daylight Savings into account.

Oct 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Richard | last post by:
Hello: Environment: Linux server PHP 4.3.4 This code: echo '<br>'.strftime('%T %Z',mktime()).', Timestamp='.mktime();
1
by: Oliver | last post by:
Hello, I am writing an application that will be used across multiple time zones (Eastern to Pacific) and since much of the application revolves around time stamps, I need a best practice for...
1
by: martini | last post by:
Problem with time zone on linux. I have a dual processor machine running with mandrake 10.1. I have some issues with the localtime and strftime functions. Sometimes it returns the date of the...
6
by: Ken Varn | last post by:
I am trying to remote debug a C# application but the debugger is reporting the following exception: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module....
3
by: Jon Davis | last post by:
The date string: "Thu, 17 Jul 2003 12:35:18 PST" The problem: // this fails on PST DateTime myDate = DateTime.Parse("Thu, 17 Jul 2003 12:35:18 PST"); Help? Jon
1
by: Clodoaldo Pinto Neto | last post by:
Hi all, I want to have the time zone string (like 'BRT') displayed after a date-time. The date column is of the type timestamp with time zone. But the time zone is not displayed. It works for...
14
by: Cesar Ronchese | last post by:
Hello! I've built a program that show some dates to users. I got a problem when users have different configured time zone machines, where: - One machine that determined time zone the date...
17
by: Timothy.Rybak | last post by:
Hello all, This is my first attempt at an application, so kid gloves are appreciated. I need to make a very simple form that only has a few elements. One is TraceCode - a text field that is...
7
by: Steve | last post by:
Hi All I have a windows application written in VB.net 2005 The users have to select a State of Australia, which I use to check they have the correct windows time zone selected in control panel...
1
by: nigelesquire | last post by:
I am in need of your assistance. I have a page with multiple unixtime stamps and I need to display them in readable time and date with the user's time zone. Below is the code. <!DOCTYPE...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.