Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using TalendDate.getCurrentDate() in tmap. However it's outputing what looks like GMT or UTC time. Is it possible to convert timezone to US Eastern TIme?
thanks
Hi
Can you show an example of US Eastern time? If EST is 4 hours behind UTC time, you can call TalendDate.addDate(Date date, int nb, String dateType) function to convert the UTC time to EST time.
Regards
Shong
Currently EST is 4 hours behind. However it can also be 5 hours behind.
EST (Eastern Standard Time) is NEVER the same as UTC-4. That is by definition. The definition of EST is UTC-5. It is always UTC-5.
During Daylight Saving Time (DST, aka “Summer Time”) the majority of the places that use EST will transfer to EDT time (Eastern Daylight Time). By definition EDT is UTC-4; and again, it always will be.
So no, EST in not only not “always 4 hours behind UTC” but it is never 4 hours behind UTC. On the other hand, EDT is always 4 hours behind UTC. Those are simply the definitions of the time zones.