java - Why is it showing the wrong timezone output? -


timezone timezone = timezone.gettimezone("us/eastern");      simpledateformat formatter = new simpledateformat("yyyy-mm-dd kk:mm z"); date date=new date(); formatter.settimezone(timezone); system.out.println(timezone.getdisplayname()); system.out.println(formatter.format(date)); 

the output on system :

eastern standard time

2015-04-01 02:41 edt

i expecting :

eastern standard time

2015-04-01 02:41 est

because us/eastern est. can explain me why?

that's eastern daylight time. save hour of daylight hour subtracted current time. can see times same. means est updated automatically. in short, it's same thing, not worry.

see short encyclopedia article.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -