Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2005 21:42:56 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        markzero <mark@darklogik.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: epoch->calendar date(1) wizardry
Message-ID:  <20050530024256.GA5689@dan.emsphone.com>
In-Reply-To: <20050530023552.GA63697@logik.ath.cx>
References:  <20050530023552.GA63697@logik.ath.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
> 
>   +%H:%M:%S %d/%m/%y

date -r $(cat t) +"%H:%M:%S %d/%m/%y"

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050530024256.GA5689>