If you just want a cron job that runs once per day by default, you can use hook_daily().
// Easy-hook, uses rule: 0 0 * * * function mymodule_daily() { // Do some stuff }