Re: [ILUG] $yesterday

From: Lee Hosty (hostyle at domain csn.ul.ie)
Date: Wed 24 Oct 2001 - 08:14:36 IST


At 17:57 23/10/01 +0100, Fergal Daly wrote:
>perl -e '($d,$m,$y)=(localtime(time()-86400))[3,4,5];$y+=1900;print
>"$d/$m/$y\n"'

how about

perl -e 'print scalar (localtime(time()-86400)),"\n"'

??

Lee Hosty -x- hostyle at domain csn.ul.ie -x- +353 (0)86 8768780

-- 
Hobbit Name: Dimple Chubb of Deephollow
http://www.chriswetherell.com/hobbit/default.asp


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:53 GMT