![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what is wrong with the log function in c? | return_user | High Level Programming | 2 | 05-02-2008 02:40 PM |
| Date Function | charandevu | Shell Programming and Scripting | 1 | 04-02-2008 06:12 AM |
| Date Function | charandevu | Shell Programming and Scripting | 1 | 04-02-2008 04:44 AM |
| Dynamic loader taking function from wrong lib | rimon | High Level Programming | 1 | 01-29-2008 03:46 AM |
| Whats wrong with my function?? <newbie> | riwa | Shell Programming and Scripting | 4 | 03-04-2006 01:14 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Wrong date function
Hi,
I am getting some very strange output when using date function in PERL on Solaris. Infact the month portion is wrong and it is 1 less then the current, means today it is responding as month =3 , andthis should be 4 ------> April Any help my code is Code:
($day, $month, $year) = (localtime)[3,4,5]; print $day; print $month; print $year; |
| Forum Sponsor | ||
|
|
|
|||
|
Code:
Infact the month portion is wrong and it is 1 less then the current, means today it is responding as month =3 , andthis should be 4 ------> April |