I am doing Android programming related to US NYSE & NASDAQ stock market
. So far I know that they are using Eastern Time (ET). Stock market opens at 9.30AM ET, closes at 4pm ET.
In order to check stock market is currently open / close, I want to check whether current time is within 9.30am - 4pm.
Is the below code correct, to get user time in ET timezone?
Calendar calendar = Calendar.getInstance();
calendar.setTimeZone(TimeZone.getTimeZone("US/Eastern"));
As I read, Eastern Time (ET) observe Daylight saving. In summer it uses EDT which is UTC-4, whereas in winter it uses EST which is UTC-5. So NYSE & NASDAQ is using ET timezone?
I want to make sure my comparison of 9.30am - 4pm is using same timezone as NYSE & NASDAQ stock market.