when i try in korn shell i am getting error like this:
$ date -d "2009-04-29 05:12:05 UTC"
date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
$ date -d "2009-04-28 23:10:05 CST - 8 hours" +"%s"
date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
In file i have "2009-04-28 23:10:05 CST"
My local server has UTC time. what i need to do is i need to wait till the date and time of the file comes and once it encounters this date and time then i need to start processing further.
The problem is i m unable to convert my server's UTC time to CST, so i need to convert CST to UTC date and time.