[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: date -bug: blank in Timestamp
From: |
Bob Proulx |
Subject: |
Re: date -bug: blank in Timestamp |
Date: |
Tue, 3 Sep 2002 09:09:01 -0600 |
User-agent: |
Mutt/1.4i |
Herm <address@hidden> [2002-09-03 11:05:41 +0200]:
> when generating a timestamp with
> date --date='2002-03-08 08:50:02' +%Y%m%d%k%M%S
> i get a blank in the response:
> 20020308 85002
>
> after time has raised it looks like this:
> date --date='2002-03-08 18:50:02' +%Y%m%d%k%M%S
> 20020308185002
> This is o.k.
>
> Problem seems to be the hour, if only one digit is reserved.
> Is it a bug or how have i to tell date that i want to have a 0 instead of an
> blank?
man date
%k hour ( 0..23)
%H hour (00..23)
> date --date='2002-03-08 08:50:02' +%Y%m%d%k%M%S
> i get a blank in the response:
> 20020308 85002
date --date='2002-03-08 08:50:02' +%Y%m%d%H%M%S
20020308085002
Bob