epoch->calendar date(1) wizardry
    Dan Nelson 
    dnelson at allantgroup.com
       
    Sun May 29 19:44:47 PDT 2005
    
    
  
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 at allantgroup.com
    
    
More information about the freebsd-questions
mailing list