Hello,
How may one pretty print an epoch timestamp using date(1)? The date
manual page gives me a headache.
Essentially, I have the timestamp in a file:
$ cat t
1117417465
..and I want to print it in a standard UK format, such as:
+%H:%M:%S %d/%m/%y
Anybody?
(before anybody screams Perl or
In the last episode (May 30), markzero said:
> How may one pretty print an epoch timestamp using date(1)? The date
> manual page gives me a headache.
>
> Essentially, I have the timestamp in a file:
>
> $ cat t
> 1117417465
>
> ..and I want to print it in a standard UK format, such as:
>
> +%
> > How may one pretty print an epoch timestamp using date(1)? The date
> > manual page gives me a headache.
> >
> > Essentially, I have the timestamp in a file:
> >
> > $ cat t
> > 1117417465
> >
> > ..and I want to print it in a standard UK format, such as:
> >
> > +%H:%M:%S %d/%m/%y
>
> d
On 2005-05-30 03:35, markzero <[EMAIL PROTECTED]> wrote:
> Hello,
> How may one pretty print an epoch timestamp using date(1)? The date
> manual page gives me a headache.
>
> Essentially, I have the timestamp in a file:
>
> $ cat t
> 1117417465
$ date -j -f '%s' 1117417465 '+%Y/%m/%d %T %z
On Mon, May 30, 2005 at 01:32:37PM +0300, Giorgos Keramidas wrote:
> On 2005-05-30 03:35, markzero <[EMAIL PROTECTED]> wrote:
> > Hello,
> > How may one pretty print an epoch timestamp using date(1)? The date
> > manual page gives me a headache.
> >
> > Essentially, I have the timestamp in a file: