Sir,
I was wondering if this was a bug or am I just trying to do this wrong.
I am using the following command to format the time into HH:SS AM. It will
not work with the time 0057 or 2457 which should be formatted to 12:57 AM.
It works fine with every other time, just not midnight.
date "+%I:%M %p" --date "2457"
[root@web cron]# date "+%I:%M %p" --date "2457"
date: invalid date `2457'
[root@web cron]# date "+%I:%M %p" --date "0057"
date: invalid date `0057'
[root@web cron]# date "+%I:%M %p" --date "0157"
01:57 AM
Bill Dunn
Network Admin/Tech Support
VCI Internet Services
(270) 442-0060 or (800) 755-1239 ext 540
_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils