Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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
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 wandering the Monastery: (2)
As of 2014-09-17 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls