How to convert UTC to local time in a shell script on linux -


i have string of format

20110724t080000z 

and want convert local time in shell script on linux. thought give input date, don't seem able tell date format input date has.

this

date -d "20110724t080000z" -u 

would make date complain

date: invalid date `20110724t080000z' 

also, format of form "20110724t080000z" called? have had little success trying google it.

that's iso8601 "basic format" combined date , time. date not seem able parse 20110724t080000z, if prepared few string substitutions parses 20110724 08:00:00z correctly.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -