I have date and time extracted from JSON in following format
I need to convert it to local time of Pakistan and add 5 hours to that time so the result is like:
How I can achieve this?
date -u gives date and time in GMT format
date gives date and time in local timezone
date +%s gives local time in epoch time
Is there a way to get GMT time in epoch format?
In the AIX I'm using, there are only -n and -u options available (so I'm unable to use -f option).
My aim is to calculate Offset in hours between localtime and GMT.
Need to convert date and time to Abudhabi: I am able to get GMT but, if I need to convert date and time directly to Abudhabi time zone.