Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: I can't subtract one DateTime object from another to get a DateTime::Duration in days

by cavac (Parson)
on May 18, 2021 at 10:37 UTC ( [id://11132706]=note: print w/replies, xml ) Need Help??


in reply to I can't subtract one DateTime object from another to get a DateTime::Duration in days

From memory, DateTime is a bit limited in that regard. You can use Date::Manip for complex date math.

A long, long time ago (in a galaxy unfortunately not far enough away), i wrote "Custom date calculations using Date::Manip", see 11109316

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
  • Comment on Re: I can't subtract one DateTime object from another to get a DateTime::Duration in days
  • Download Code

Log In?
Username:
Password:

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

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

    No recent polls found