Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Parse and Summarise Big Brother logs

by chanio (Priest)
on Apr 17, 2006 at 21:49 UTC ( [id://543932]=note: print w/replies, xml ) Need Help??


in reply to Parse and Summarise Big Brother logs

Nice!

...
chomp(my $today = `date +%Y-%m-%d`);
...
You could...
my (@date)=((localtime())[5,4,3]); $date[0]+=1900; $date[1]++; my ($today)=sprintf("%4i-%02i-%02i",@date);
THX!

Replies are listed 'Best First'.
Re^2: Parse and Summarise Big Brother logs
by CharlesClarkson (Curate) on Jun 18, 2006 at 05:18 UTC

    How about strftime()?

    use POSIX 'strftime'; print strftime '%Y-%m-%d', localtime();
    HTH,
    Charles

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://543932]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-19 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found