|
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/
[Prev in Thread] | Current Thread | [Next in Thread] |