473,396 Members | 1,786 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,396 software developers and data experts.

Time zone problem

Hello everyone,

Is there any framework or API function i can use to get the date and time of
any city in the world?

Basically our server is based in Sydney and we need to know time in Perth
when any scanning information comes from there. The server time is always
Sydney time.

Thanks in advance
Ishan

Jan 12 '06 #1
2 1426
> Is there any framework or API function i can use to get the date and time of
any city in the world?
I just took a quick look and didn't see any. I'm not surprised, I doubt the
information would be something that could be "shipped", but rather would have
to be pulled real-time (as it were). Some server somewhere would need to
offer a web service or some such for that purpose.

However, take a look at:
http://www.codeproject.com/dotnet/WorldClock.asp
Basically our server is based in Sydney and we need to know time in Perth
when any scanning information comes from there. The server time is always
Sydney time.


Unless the sender isn't timestamping the data there should be no problem.
You should only need to know _when_ the event occurred regardless of _where_
it occurrred. If you _do_ need to know where, then again, the sender should
tell you and you can store that seperately.

A related issue came up several years ago when the employer for whom I was
working at the time was changing from Oracle to SQL Server 7. It became
apparent that confusion could occur when the client was in a different time
zone from the server. The solution was for the client code to query the
database for what time to use rather than the client's time.
Jan 12 '06 #2
This [1] is interesting. Also check out "Internet Time" [2] a very
compelling idea.

No pun intended, but its "time" software developers formed a coalition to
solve this problem which would be easy given the funding -- a business
model -- to pay for a server farm to host and support localized web service
applications.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://www.timeanddate.com/worldclock/
[2] http://www.timeanddate.com/time/internettime.html

"PIEBALD" <PI*****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
Is there any framework or API function i can use to get the date and time
of
any city in the world?


I just took a quick look and didn't see any. I'm not surprised, I doubt
the
information would be something that could be "shipped", but rather would
have
to be pulled real-time (as it were). Some server somewhere would need to
offer a web service or some such for that purpose.

However, take a look at:
http://www.codeproject.com/dotnet/WorldClock.asp
Basically our server is based in Sydney and we need to know time in Perth
when any scanning information comes from there. The server time is always
Sydney time.


Unless the sender isn't timestamping the data there should be no problem.
You should only need to know _when_ the event occurred regardless of
_where_
it occurrred. If you _do_ need to know where, then again, the sender
should
tell you and you can store that seperately.

A related issue came up several years ago when the employer for whom I was
working at the time was changing from Oracle to SQL Server 7. It became
apparent that confusion could occur when the client was in a different
time
zone from the server. The solution was for the client code to query the
database for what time to use rather than the client's time.

Jan 18 '06 #3

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

Similar topics

11
by: lduperval | last post by:
Hi, I`m trying to do date calculations in three types of time zones: local, GMT and specified. The issue I am facing is that I need to be able to specify a date in the proper time zone, and I`m...
2
by: Jason Priebe | last post by:
I'm a bit confused about SET TIME ZONE and its effect on PostgreSQL's date processing. In my experience with timestamps in all other *nix-based software systems, a timestamp is always a numeric...
0
by: Jason Priebe | last post by:
I posted earlier with a very complex example. This simple one gets to the point much faster. timeofday() seems to behave inconsistently when the timezone is set with "GMT+X" notation. foo=>...
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
2
by: Avi | last post by:
I have a problem to get the different time zone's name for example I need the name of time zone UTC + 4:30 ("Kabul") The TimeZone.CurrentTimeZone get my current time zone name and I couldn't...
4
by: brfin999 | last post by:
Server time zone 1 hour different from Client time zone. .Net 1.1 c# Win Forms app: actual date 9/25/04 displays 9/24/04 11:00 PM. When I change client time zone to equal server time zone, date...
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...
2
by: Mike | last post by:
I'm writing an application for Windows XP Embedded. This application requires that the user be able to change the time zone from within the application. I'm trying to do this using...
3
by: Satish Itty | last post by:
Hi all, I have a big problem in my hands and not sure how I can fix this. Any suggestions would be greatly appreciated. I have a .NET 3 tier app developed in VS2003 and .NET 1.1. the client is a...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.