I can get a list of time zones with [NSTimeZone knownTimeZoneNames], but that only gives the time zone IDs which include one or two cities in each time zone.
The Date & Time settings has a great list of cities and I have seen a few other apps that have the same if not similar lookup lists.
Where do these lists come from?
I do need to ...
any ideas how to get client/request timezone in jsp?
...
In C++ on Windows, given a city, lets say london or newyork or sydney or singapore etc.. how do I find the UTC offset for each of them, ie the function should be able to accept a city name and return the UTC offset in the current scenario ie taking into account daylight savings. Any ideas how this can be done using win32 APIs
...
I know this subject has been beaten to death but after searching for a few hours to this problem I had to ask.
My Problem: do calculations on dates on a server based on the current time zone of a client app (iphone). The client app tells the server, in seconds, how far away its time zone is away from GMT. I would like to then use this i...
I've set up my app exactly in line with the Railscasts Time Zone Episode 1 but when I run
<%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones %>
I get this error
NoMethodError in Users#new
Showing app/views/users/new.html.erb
where line #27 raised:
You have a nil object when you didn't
expect it! You ...
Hello,
Lets say I have a time 04:05 and the timezone is -0100 (GMT)
I want to calculate the new time which will be 03:05
Is there any function in python to do that calculcation ?
Thanks
...
Anyone know of a web service or something out there that I could give a zip code and get a time zone back?
Or is that something I just need to write myself? If so, any hints or guides on how to do that?
I use visual studio 2008 and C#.
...
Hi,
I have a problem, I am using the content organizer feature to redirect document on upload and the auto create folder feature of it, the property used is a date set by the user when the document gets uploaded.
My problem is that when the folder gets created it writes the time set by the user minus two hours, I see that it uses GMT ti...
What is easiest way to display the current time in PST (West Coast) time using PHP?
...
Is there something special in the date 3rd of April 1942? For some reason the the hour of day 0 (12:00 am) is illegal for this specific date. The date is accepted when a lenient calendar is used but the hour of day is incremented to 1 (1:00 am).
Relevant code
java.util.Calendar calendar = java.util.Calendar.getInstance(
java.util...
I have a .NET WebService (written in C#), that is supposed to serve people around the world.
With each request I get the user's datetime in his own time zone with the format : yyyy/MM/dd HH:mm ZZZZ.
I have to convert the string to something representing the original date and time and specifying the time zone in GMT. I have to make some l...
WCF client is receiving a Date value from a Java web service where the date sent to the client in XML is :
<sampleDate>2010-05-10+14:00</sampleDate>
Now the WCF client receiving this date is in timezone (+08:00) and when the client deserialises the Date value it is converted into the following DateTime value :
2010-05-09 18:00 +08:00...
How does the default TimeZone get set in ActiveSupport?
Here's what's happening:
irb -r 'rubygems'
ruby-1.8.7-p174 > require 'active_support'
ruby-1.8.7-p174 > require 'active_support/time_with_zone'
ruby-1.8.7-p174 > Time.zone
ruby-1.8.7-p174 > nil
How do I set that to the current location by default?
...
Pl help me. I'm saving the date in UTC format. while displaying it, i'm converting it to local time. but it is displaying server time. How can i display the date by identifying the client timezone?
...
I have been scouring the google machine and have come up with nothing to answer this. When making calls to:
time.gmtime()
This ends up returning a time, as the subject line says, 5 hours ahead of my system time. I cannot figure out what is going on. time.tzname() returns the proper timezone. Aside from setting python to a timezone...
I'm trying to change the time zone on my Android emulator. I'm using Eclipse on a Windows 7 machine. To do this it says to enter some commands in the command line, but doesn't say how to access the command line!
So how do I access the command line in Windows 7 using Eclipse?
...
I have a page which allows a user to view and edit times (with dates) stored in a database. The times are stored in the database in UTC and attached to a location with a different timezone. When the user views the times they are shown in the attached timezone and not necessarily the timezone of the browser. The user should then be able t...
My script has as input the latitude and longitude values as GPS coordinates.
How can I get the current local time?
Are out there solutions that do not use databases or web services?
PHP has a method to retrieve location based on a timezone, I am wondering if the reverse exists or not
...
On Linux, I need to find the currently configured timezone as an Olsen location. I want my (C or C++) code to be portable to as many Linux systems as possible.
For example. I live in London, so my current Olsen location is "Europe/London". I'm not interested in timezone IDs like "BST", "EST" or whatever.
Debian and Ubuntu have a file /...
Hi
I would like to determine a time offset to GMT/UTC (including daylight saving time) for different countries at a specific date in VBA. Any ideas? Thanks
...