Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Valid code?

by soonix (Canon)
on Mar 18, 2020 at 15:43 UTC ( [id://11114431]=note: print w/replies, xml ) Need Help??


in reply to Valid code?

As all the others said, it is syntactically correct, even if you check only the part that is between quotes.

That said, I am sad that nobody suggested basic arithmetic transformation from (reformatted for better clarity)
TO_DAYS(dateadded) - TO_DAYS(Now()) >= -$newdateadded
to
TO_DAYS(Now()) - TO_DAYS(dateadded) <= $newdateadded
of course, that is if the formula was right from the beginning. Otherwise the transformed one is as wrong as the original...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-03-28 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found