in reply to DateTime and hour 0
You entered hour "24" when there is only an hour up to "23"... try $hour % 24 (that is, hour modulus 24)
--------------
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."
In Section
Seekers of Perl Wisdom