I am trying to convert a
date string in continental Portuguese back to epoch time using
bash. My default locale is
My example string is
Mai 12 06:58:47 WEST 2015
I have already tried doing:
LC_TIME="pt_PT.utf8" date --date="Mai 12 06:58:47 WEST 2015" +%s LC_ALL="pt_PT.utf8" date --date="Mai 12 06:58:47 WEST 2015" +%s
First command gives back the error
date: invalid date and second command returns the same error in Portuguese.
I also tried with
pt_PT which does not makes sense, I think, as I do not have that locale installed.
How can I do it?