Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Adding a comma ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 1386 of 1478
Post > Topic >>

Adding a comma to format localtime

by gpod363@[EMAIL PROTECTED] (Gregg O'Donnell) Apr 9, 2007 at 09:41 AM

--0-863919537-1176136917=:29721
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

All,
  I use this line of code:
  my $datetime = join ' ', (split ' ', localtime)[0,2,1,4,3];
   
  To create this result:
  Mon 9 Apr 2007 09:15:05
   
  How can I add a comma to this result to get:
  Mon, 9 Apr 2007 09:15:05
   
  Best and thanks,
  Gregg

 	 
---------------------------------
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  
--0-863919537-1176136917=:29721--
 




 6 Posts in Topic:
Adding a comma to format localtime
gpod363@[EMAIL PROTECTED]  2007-04-09 09:41:57 
Re: Adding a comma to format localtime
wiggins@[EMAIL PROTECTED]  2007-04-09 11:11:52 
Re: Adding a comma to format localtime
krahnj@[EMAIL PROTECTED]   2007-04-11 09:35:52 
Re: Adding a comma to format localtime
susheelm@[EMAIL PROTECTED  2007-04-12 11:57:39 
Re: Adding a comma to format localtime
tigger@[EMAIL PROTECTED]   2007-04-12 05:56:14 
Re: Adding a comma to format localtime
Peter@[EMAIL PROTECTED]   2007-04-12 06:54:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 1:05:54 CDT 2008.