bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date bug


From: VCI Help Desk
Subject: date bug
Date: Fri, 13 Jul 2001 09:18:23 -0500

    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"

address@hidden cron]# date "+%I:%M %p" --date "2457"
date: invalid date `2457'
address@hidden cron]# date "+%I:%M %p" --date "0057"
date: invalid date `0057'

address@hidden 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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]