![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| perl -write values in a file to @array in perl | meghana | Shell Programming and Scripting | 27 | 06-07-2009 06:05 PM |
| [PERL] Running unix commands within Perl Scripts | userix | Shell Programming and Scripting | 1 | 05-28-2008 07:06 PM |
| converting localtime to unixtime | AshishK | UNIX for Advanced & Expert Users | 2 | 10-30-2007 10:22 AM |
| Perl: Run perl script in the current process | vino | Shell Programming and Scripting | 10 | 12-09-2005 10:45 AM |
| Replace Perl Module name in all Perl scripts | rahulrathod | Shell Programming and Scripting | 2 | 12-02-2005 01:00 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Perl + localtime()
ok here is a perl date question not asked befor.
i know i am feeling small for not knowing. BUT!!!! Code:
$ENV{TZ}="US/Central";
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime();
for somereason i cant get it to add 1900 to the year unless i create a new variable. What do i need it for? to fill in this variable w/ the current full 4 digit year (2003). $ARCHIVE_OUT="/homes/archive/outbound/${year}_${mon}_${mday}"; |
| Bookmarks |
| Tags |
| perl localtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|