Ask your own question, for FREE!
Computer Science 21 Online
OpenStudy (anonymous):

I'm a beginner java programmer, and my teacher was absent recently. The sub taught us nothing. I am currently working on time zones / converting GMT to other time zones. If you're novice / advanced at Java programming language I would love some assistance : )

OpenStudy (rsmith6559):

What part is giving you issues? How computers handle time is a large subject.

OpenStudy (kva1992):

try { DateFormat gmtFormat = new SimpleDateFormat(); TimeZone estTime = TimeZone.getTimeZone("EST"); gmtFormat.setTimeZone(estTime); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); sdf.setTimeZone(TimeZone.getTimeZone("GMT")); System.out.println("EST Time: " +gmtFormat.format(sdf.parse("20140508063630"))); } catch (ParseException e) { e.printStackTrace(); } should be something like this code is fairly self explanatory but if you need me to explain just ask and i will

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!