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?
from the current format which is yyyy-mm-ddThh:mm:ss+hhmm to this format?
The values are in a csv file and there are also negative values so I can't just substitute hyphens with forward slashes, also I want the part that specifies the time zone removed.
My knowledge of sed and awk is very basic.
When I use the `date' command on RHEL5, I can get the time shown in 24 hr format. I wonder if the time can be shown in 12 hr format. But I don't want to use the `date +FORMAT' to do that, neither `alias date='date +FORMAT''. I just want a simple `date' to show time in 12hr format.
Is there any configuration file about the 12/24 hr format?