then the checknews(1) program runs every 30 minutes. If periodic is set but tperiod is unset or set to 0, periodic behaves like precmd.
then date(1) runs just before the shell prompts for each command. There are no limits on what precmd can be set to do, but discretion should be used.