Jason on 6 Mar 2007 12:24:19 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Daylight Savings Time

  • From: Jason <jcostom@gmail.com>
  • To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] Daylight Savings Time
  • Date: Tue, 6 Mar 2007 07:24:14 -0500
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Is/JJ6iGQmtjHu1uHIFyCe4KVNdZoEl7NBcEHJeaZkPaklUoEG/5vZ+Mllb75CTDQ103tT6VPtrxLWlZQsP014j0lCwVg4UR7WR9NNCg4lZ9mDIAby7rl/pJtD6PJdDIwmk/UmnVATNIvGrZw72er1iz6hSrwHD8k03rzOv3fic=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

On 3/5/07, Stephen Gran <steve@lobefin.net> wrote:
$ perl -e 'my $time = localtime(time()); print "$time\n";'
Mon Mar  5 20:44:03 2007

Is much less typing.  localtime() gives the same output as strftime %c
when forced into scalar context.

So, you could cut that down further to:

perl -e 'print scalar localtime(time())'

At least, that seems to work for me...
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug