Date: Tue, 26 Oct 1999 21:46:04 -0500 From: "Scot W. Hetzel" <hetzels@westbend.net> To: <questions@freebsd.org> Subject: Date -f fmt date - how to get it to work Message-ID: <000a01bf2025$69fe1040$8dfee0d1@westbend.net>
next in thread | raw e-mail | index | archive | help
I am trying to add a hour to a date value in the format of "YYYYmmddHHMM.SS", but when I execute the date command it returns an illegal time format: # date -v+1H -f '%Y%m%d%H%M.%S' 199901051000.03 +%Y%m%d%H%M.%S Failed conversion of ``199901051000.03'' using format ``%Y%m%d%H%M.%S'' date: illegal time format If I break-up the date into YYYY/mm/dd HH/MM/SS, then it will work. # date -v+1H -f '%Y/%m/%d %H:%M:%S' '1999/01/05 10:00:03' +%Y%m%d%H%M.%S 199901051100.03 What do I have to change to get the first date command to work? Thanks, Scot P.S. Please CC me on any replies. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000a01bf2025$69fe1040$8dfee0d1>