Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Attack of the killer timestamps

by chexmix (Hermit)
on Mar 20, 2008 at 20:51 UTC ( [id://675304]=note: print w/replies, xml ) Need Help??


in reply to Re: Attack of the killer timestamps
in thread Attack of the killer timestamps

I especially like how this compresses and elides things -- it's FAR more Perl-y than what I wrote.

I'm still very much learning how to speak/write this stuff in anything like an effective way.

Replies are listed 'Best First'.
Re^3: Attack of the killer timestamps
by mr_mischief (Monsignor) on Mar 20, 2008 at 22:11 UTC
    Well, being a poet with a really nice grasp of English vocabulary should assist in becoming a conversant to fluent Perl programmer. Perl is very sensitive to context and has a plethora of its own vocabulary. Some people in fact deride it for these things, but others revel in them. My impression of you from this thread is that if you apply yourself to learning Perl's vocabulary and grammar as you have to those of English, you will be a master. All it takes is time, effort, a bit of intelligence, and the ability to handle symbolic thought. You're clearly, then, well on your way. Take heart and take practice, and you'll be writing like an old hand soon.
      Thanks for this & I hope you are right. It would be great if I could find shiny new reasons to not regret the time I have spent with poetry and theatre. When I was a teacher I used to tell my students "nothing is wasted," and really _believe_ it, but I'd go off and have a bout of regret anyway over not having studied astronomy, or mathematics (or whatever). But there _really are_ are many roads to enlightenment.
Re^3: Attack of the killer timestamps
by holli (Abbot) on Mar 20, 2008 at 22:34 UTC
    use Class::Date qw(date -DateParse); $Class::Date::DATE_FORMAT="%Y/%m/%d %H:%M:%S"; print date('2008/01/01 10:00:00') + 300, "\n", date('2008-01-01 10:00: +00') + '5m';


    update: golf opened ;)


    holli, /regexed monk/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2024-04-16 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found