Act on date field value I have a CT with a  Date (Unix timestamp) field implemented. It represents the start date of an event.

One simply question: Is there a way to compare somehow, this value with the current date() and when it matches (equal) the current date() to trigger an action? It must be equal, other way will trigger an action many times. 

Up until now I've tried in hook_node_view to implement the whole logic, no luck.

This hook offers no accuracy on what someone wants to do. 

Cron job's aren't suitable, cron isn't running every minute or second.

The other thing I've tried was Rules, but things become complicated, thought is the best way to follow!?
Any suggestions?
Step 1 - Use VBO and Rules

You could process the results of a VBO enabled view via Rules, whereas your rule performs 2 Rules Actions:


Load the VBO list of nodes that you want to be processed (ie those for which the date field matches your criteria).
Add a loop to perform a Rules Action, for each node contained in your Views results.


For any node related data you may need in your Rules Actions, make sure that they are contained in the Views result.

For more details, have a look at the tutorial "How to process the results of a VBO enabled view via Rules?".

Step 2 - Trigger the rule

Use the "Rules Once per Day" module to actually get your rule triggered. Here is how it works (as per the comment in issue 2495775, from the module owner):


You specify a trigger hour on the administration settings page for this module.
The Rule trigger will then run when cron tasks are first run after the start of that hour. The actual run time will depend on your cron task timings.


So this is another way to understand/read this:


The "Event" will only be triggered when a cron job is run.
And that event will only be triggered 1 time / day, i.e. "next time cron runs after the trigger hour has passed".


With that, you should be able to adapt the rule from Step 1 to run ... once a day, on any day.