epoch->calendar date(1) wizardry

2005-05-29 Thread markzero
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

Re: epoch->calendar date(1) wizardry

2005-05-29 Thread Dan Nelson
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: > > +%

Re: epoch->calendar date(1) wizardry

2005-05-29 Thread markzero
> > 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

Re: epoch->calendar date(1) wizardry

2005-05-30 Thread Giorgos Keramidas
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

Re: epoch->calendar date(1) wizardry

2005-05-30 Thread markzero
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: