473,385 Members | 1,343 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.

.NET component developers - Suggestion

Here's a suggestion for a module/class that can be built and
potentially sold. I've found several companies that build and sell .NET
controls.. Here's an idea for you folks..

I've noticed multiple posting related to timezone conversion. i.e given
a time in timezone A, convert the time to timezone B, by accounting for
DST. There doesn't seem to be a clean solution for this.

I know there are classes that allow you to convert to and from UTC to
Server timezone. A class that allows conversions to and from arbitrary
timezones would be a nice to have.

To simplify it, pick only major timezones and restrict the date range -
say the next 10 years.

Bijoy

Nov 19 '05 #1
10 1036
Two questions for you :

1.
Could you explain the difference between
major timezones and minor timezones ?

2.
restrict the date range say the next 10 years.
Please explain the difference between a date today
and a date a year from now, in terms of timezones.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"bijoy" <b_*****@yahoo.ca> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com... Here's a suggestion for a module/class that can be built and
potentially sold. I've found several companies that build and sell .NET
controls.. Here's an idea for you folks..

I've noticed multiple posting related to timezone conversion. i.e given
a time in timezone A, convert the time to timezone B, by accounting for
DST. There doesn't seem to be a clean solution for this.

I know there are classes that allow you to convert to and from UTC to
Server timezone. A class that allows conversions to and from arbitrary
timezones would be a nice to have.

To simplify it, pick only major timezones and restrict the date range -
say the next 10 years.

Bijoy

Nov 19 '05 #2
Do i sense sarcasm?

anyways,

It may be difficult to gather data for ALL timezones.. Some areas do
not have DST, others do. So I am suggesting the class handle a subset
of all timezones.

DST changes dont happen on the same day every year. Again, it may be
difficult to collect these "change dates" for an infinite number of
years.

Nov 19 '05 #3
It's a relatively simple task.. all the info you need about timezones is
stored in the windows registry.

"bijoy" <b_*****@yahoo.ca> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Do i sense sarcasm?

anyways,

It may be difficult to gather data for ALL timezones.. Some areas do
not have DST, others do. So I am suggesting the class handle a subset
of all timezones.

DST changes dont happen on the same day every year. Again, it may be
difficult to collect these "change dates" for an infinite number of
years.

Nov 19 '05 #4
I think I kow what you mean. How about

http://msdn.microsoft.com/library/de...d=3&NewsId=633
http://www.componentsource.com/catal...n=10019&bhcp=1
http://www.programmersheaven.com/zon...1011/26023.htm
http://www.google.com/search?hl=en&q...Zone+component

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"bijoy" <b_*****@yahoo.ca> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Do i sense sarcasm?

anyways,

It may be difficult to gather data for ALL timezones.. Some areas do
not have DST, others do. So I am suggesting the class handle a subset
of all timezones.

DST changes dont happen on the same day every year. Again, it may be
difficult to collect these "change dates" for an infinite number of
years.

Nov 19 '05 #5
Adrian,

How do I access teh windows registry though a .NET web app?

Nov 19 '05 #6
Kevin,

The 2nd link seems close to what I am looking for..

The MSDN article talks about converting to and from SERVER time to UTC.

The Prog Heaven seems to get the correct time from time servers

Nov 19 '05 #7
re:
Do i sense sarcasm?
Just two honest questions.

re: It may be difficult to gather data for ALL timezones.
Some areas do not have DST, others do.
That's exactly why I asked.

re: So I am suggesting the class handle
a subset of all timezones.
But I thought you were looking for a "clean solution".
Even if that was done, a simple subset would not work.

For example, in the Caribbean, several countries are
in the same timezone but some use DST and some don't.

Tracking the differences in countries which are in the same
timezone but don't use DST will take a lot of research and code.

re: DST changes dont happen on the same day every year.
Another complication.

The control would need to distinguish in
which country it's being installed in.

Of course, providing a way to select the country might
be convenient towards resolving that, but setting up
the rules for each individual country might be a difficult task.

In my country, the whole shebang changed 2 years ago.
We used to apply DST, but now don't.

I'm sure we're not the exception.

I'm sorry if I sounded sarcastic.

I only meant to ask a couple of questions which would point
to the tough programming/maintenance tasks which such a
control would entail.

Maybe that's why there isn't one on the market ?

:-)

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"bijoy" <b_*****@yahoo.ca> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com... Do i sense sarcasm?

anyways,

It may be difficult to gather data for ALL timezones.. Some areas do
not have DST, others do. So I am suggesting the class handle a subset
of all timezones.

DST changes dont happen on the same day every year. Again, it may be
difficult to collect these "change dates" for an infinite number of
years.

Nov 19 '05 #8
Assuming the correct timezone is set, of course.

That is not guaranteed to be 100% correct.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Adrian Parker" <ap******@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
It's a relatively simple task.. all the info you need about timezones is
stored in the windows registry.

"bijoy" <b_*****@yahoo.ca> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Do i sense sarcasm?

anyways,

It may be difficult to gather data for ALL timezones.. Some areas do
not have DST, others do. So I am suggesting the class handle a subset
of all timezones.

DST changes dont happen on the same day every year. Again, it may be
difficult to collect these "change dates" for an infinite number of
years.


Nov 19 '05 #9
by using the registry class.

Dim strPath As String = "Software\Microsoft\Windows NT\CurrentVersion\Time
Zones"
Dim oReg As RegistryKey = Registry.LocalMachine.OpenSubKey(strPath)
"bijoy" <b_*****@yahoo.ca> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Adrian,

How do I access teh windows registry though a .NET web app?

Nov 19 '05 #10
Juan,

I agree.. there are plenty of complications to worry about when it
comes to implementing something like this..

thats why i suggested simplifying the problem by working with a subset
of timezones and restricting the time from time X to Y. won't be a
100% but hey!

I envision an object with a function like this..

public DateTime Convert(System.DateTime theDate, int srcTimeZoneID, int
destTimezoneID) {}

So, it takes as input a time, a sourcetimezone and a destTimeZoneID. it
would be called as follows:

chinaTime = myObj.Convert(someTimeVar, timezones.Pacific,
timezones.China)

Bijoy

Nov 19 '05 #11

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

Similar topics

0
by: Nunya D. Bidness | last post by:
If anyone is interested in testing these components goto http://www.vibrantinnovations.com/vibrantlayouttools.asp The Vibrant Layout Tools ActiveX component is a suite of tools that allow...
12
by: Chien Lau | last post by:
I had a situation occur today that's happened a number of times before and I'd like to get your take on it: Imagine... You're developing a WinForms app for a client that includes the use charts....
0
by: Doug | last post by:
Hello, We are having a problem with a component in our system that uses publisher policy files. Whenever it gets modified and moved out to where our build processes reference components for other...
3
by: imran aziz | last post by:
Hello All, We have been having problem with our file upload component. It seems that at times the file upload process hangs, and the users get a timeout error. Although the users upload 1 or 2...
9
by: Roman | last post by:
Hello I have a component built in VB.2003. It has the following property: Public Shared mCONN As SqlConnection Public Property Connection() As SqlConnection Get Return mCONN End Get...
122
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection...
7
by: Joe | last post by:
Is it possible to have a component which is global to the entire application? I need to have a single component act sort of like a server which components in any of the forms can access. For...
0
by: fiona | last post by:
Yucca Valley, CA, - October 2007: Catalyst Development Corporation, publisher of SocketTools, SocketWrench and LogicGem, today announced the release of Catalyst File Transfer .NET V5.0. For...
0
by: fiona | last post by:
FOR IMMEDIATE RELEASE Catalyst releases Catalyst Internet Mail .NET V5.0 Message Delivery and Management .NET Component Yucca Valley, CA, - November 2007: Catalyst Development Corporation,...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.