Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Parse and Summarise Big Brother logs

by chanio (Priest)
on Apr 17, 2006 at 21:49 UTC ( #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!


Comment on Re: Parse and Summarise Big Brother logs
Download Code
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
Node Status?
node history
Node Type: note [id://543932]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2015-07-07 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls