bug-coreutils
[Top][All Lists]
Advanced

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

date bug


From: David
Subject: date bug
Date: Tue, 07 Jul 2009 10:48:55 +0100
User-agent: Opera Mail/10.00 (Linux)

Hi,
whist using "date" in a bash script there seems to be a problem returning the hour for 09:20

t_hr=$(date +%l) (small L) does not return "9" from 09:20 or any time between 09:00 and 09:30

t_hr=$(date +%-I) works fine

I needed the hour with out the padded zero

best regards

David


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




reply via email to

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