Sam Harris wrote:
> 
> I am trying to extract last month's date from today's date as in "Jan" or 
>"Feb"....is there a switch to enable that ?

Well im not sure what you want.

$ perl -we 'print join " ", localtime , "\n" '
27 24 15 11 1 103 2 41 0 

$ perl -we 'print scalar localtime , "\n" '
Tue Feb 11 15:24:11 2003

$ perl -we 'print "", (localtime)[4]-1 , "\n" '
0

perldoc -f time
perldoc -f localtime

/Stefan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to