I have a date/time string which is extracted from a filename. I know that the timestamp was written using time zone A and I need to convert it to time zone B for further processing. Is this possible in bash?
filenameTimestamp="2015-01-20 18:05:02" timezoneA="Australia/Sydney" timezoneB="Australia/Brisbane"
I assume I will have to parse the string using time zone A and then output it again to a string using time zone B.