Author |
Topic  |
|
Martha2Mary
Junior Member
 
New Zealand
250 Posts |
Posted - 03 April 2001 : 01:22:53
|
Hi,
I was wanting to find out if the following could be done in asp code, or even javscript, and if so, is there someone who would be willing to code it for me.
What I was wanting was a script where if I enter a certain date and time (this being able to be changed), it will return what that date and time will be in X number of different timezones. For example, if I entered the date and time of "5 April 1.00 pm PST", it will return what that date and time converts to in other locations (Sydney, Atlanta, etc), with all time zones being included in that return.
I hope this is making sense - being a non-code person, I am more than likely using completely wrong terminology. Also, I have searched around for a javascript that can do this, but altho a couple have come close, none can do what I actually require, so if you know of one that can, please let me know!
Thanks.
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 03 April 2001 : 01:57:30
|
I think the key will be finding a table that includes the locations you're interested in and their corresponding time offsets, and I imagine such a table exists somewhere on the Internet. Knowing all the offsets, and the offset of the enterer, a script should not be too difficult.
(I like your quote :)
====== Doug G ====== |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 03 April 2001 : 04:18:55
|
I hav just written a MOD which allows the forum to display the date and time using the users selected timezone.
The info which controls this is in the windows registry, but I have extracted it into a table.
If you tell tell me what you want to do with the Timezones, I will try and explain what to do.
|
 |
|
Martha2Mary
Junior Member
 
New Zealand
250 Posts |
Posted - 03 April 2001 : 06:15:58
|
quote:
I think the key will be finding a table that includes the locations you're interested in and their corresponding time offsets, and I imagine such a table exists somewhere on the Internet. Knowing all the offsets, and the offset of the enterer, a script should not be too difficult.
(I like your quote :)
I've searched a few asp sites for such a script, but have not as yet found one. Chances are I'm looking in the wrong place..... 
And the quote - it is an interesting one! I was lying in bed late one night, and the program "The Outer Limits" was just ending, when the Narrator made that statement. It really struck me, so much so that I got up and wrote it down 
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
 |
|
Martha2Mary
Junior Member
 
New Zealand
250 Posts |
Posted - 03 April 2001 : 06:30:38
|
quote:
I hav just written a MOD which allows the forum to display the date and time using the users selected timezone.
The info which controls this is in the windows registry, but I have extracted it into a table.
If you tell tell me what you want to do with the Timezones, I will try and explain what to do.
Thanks Huw - yes, I have been waiting for that Mod I think. The problem I have is scheduling Forum Chats with Members who find it very difficult to work out what time it will be in their time zone when it is XXX time in another time zone (the time zone the chat time is scheduled using). Now me, I can go to timezoneconverter.com and work it out no problem, but others don't seem to get it, which is understandable. So, what I was wanting was something where I could let them know that I had scheduled a Chat for Wednesday the 4th of April, at 3.00 pm, Forum Time (which also happens to be my time zone), then I could enter that date and time in a configurable asp page, click on a submit button, and then that would return what that Scheduled Chat time will be for X number of timezones (probably the main 24 zones). Remember, I am not concerned about it displaying the current date and time, but a future date and time.
This page could then be accessed by Members so that they can check what time the Chat is scheduled for using their time zone.
So, can it be done? That, is the question 
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 03 April 2001 : 06:40:16
|
OK, then my mod is what you need, I am hoping to post the code tonight, I am just checking the changes and writing some instructions know.
But basically all you would need to do is display the time of the chat using the chkDate(chatDatetime) and chkTime(chatDateTime) and it will display it in the users timezone (once they have edited their profile)
Unfortunately this is not translated into messages, so you could not simply post the time in a post.
|
 |
|
Martha2Mary
Junior Member
 
New Zealand
250 Posts |
Posted - 03 April 2001 : 07:51:01
|
quote:
OK, then my mod is what you need, I am hoping to post the code tonight, I am just checking the changes and writing some instructions know.
But basically all you would need to do is display the time of the chat using the chkDate(chatDatetime) and chkTime(chatDateTime) and it will display it in the users timezone (once they have edited their profile)
Neat! I'll be looking forward to implementing it when I get up in the morning (it's bedtime for me here in Kiwiland).
So the chkDate and chkTime can be used to display a future time as well as the current?
And it doesn't matter about it not being able to be used in posts, as I was just going to include it in my chat.asp page (http://www.hisgrace.org.nz/forum/chat.asp).
I'll let you know how I get on with implementing it tomorrow morning, and many thanks!
*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind * |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 03 April 2001 : 23:25:40
|
Goot slightly delayed, have sorted all the code out, will do instructions in morning, hav eto sleep soon.
|
 |
|
|
Topic  |
|
|
|