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 : )
What part is giving you issues? How computers handle time is a large subject.
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
Join our real-time social learning platform and learn together with your friends!