Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2005 22:53:27 -0700
From:      Bill Campbell <freebsd@celestial.com>
To:        freebsd-questions@freeBSD.org
Subject:   Re: ctime date
Message-ID:  <20050527055327.GA3284@alexis.mi.celestial.com>
In-Reply-To: <5c9b56eee08d6c984986cf48a9290c9f@san.rr.com>
References:  <5c9b56eee08d6c984986cf48a9290c9f@san.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 26, 2005, Evan Sayer wrote:
>Hello-
>Does anyone know how to get the ctime(3) format of the date in a script 
>(i.e without actually writing a C program to return it).

ctime=`perl -e 'printf qq(%d\n), time' `

Bill
--
INTERNET:   bill@Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

There are three kinds of men. The ones that learn by reading. The few who
learn by observation.  The rest of them have to pee on the electric fence
for themselves. -- Will Rogers



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