Angelo,

Setup a system level cron to run at specified time, or if you need to do certain job from you app, take a look at node-cron <https://github.com/ncb000gt/node-cron>.


On Sunday 03 June 2012 01:05:55 PM IST, Angelo Chen wrote:

Hi,

I need to run a function every day, following will work, but it will
be 1 day after the time I started the app, is there a way to set to a
time, say every 1st hour of the day? Thanks

setInterval(function() {
setLogDate()
}, 60000);

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to