Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2013, 05:08 AM
Registered User
 
Join Date: Mar 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Time zone finding

I wanted to get a simple website that will have one button that says "It's 5 O'Clock Somewhere" and when you click I want it to find the country that is closets to 5PM.

Can any one help?
Thanks
 
Old April 21st, 2013, 03:17 PM
Registered User
 
Join Date: Apr 2013
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Flowaz View Post
I wanted to get a simple website that will have one button that says "It's 5 O'Clock Somewhere" and when you click I want it to find the country that is closets to 5PM.

Can any one help?
Thanks
================================================== =======

An ideea:
Use the following instruction:

Date day = new Date(); // the output will be like this:
"Sun Apr 21 22:12:09 FET 2013".

Now you can compare this variable(that is current time - the time when this variable is called and executed) with the existing timezone (eg: +2 South Africa, Greece).





Similar Threads
Thread Thread Starter Forum Replies Last Post
date and time in EST time zone anboss XSLT 1 May 21st, 2008 01:42 PM
time zone & day light time rajn ASP.NET 1.0 and 1.1 Professional 0 August 7th, 2007 05:02 PM
Zone Time kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 October 20th, 2006 12:30 PM
Time zone trouble! MichaelTJ .NET Web Services 2 January 31st, 2005 06:05 AM
getting time zone nerssi Javascript 2 December 22nd, 2004 10:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.