ctime date

Bill Campbell freebsd at celestial.com
Thu May 26 22:52:27 PDT 2005


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 at 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


More information about the freebsd-questions mailing list