Cron Expression for Daily at Noon
Run a cron job once per day at 12:00 PM using 0 12 * * *. Useful for midday reports and lunchtime data refreshes.
Expression
0 12 * * * At 12:00 every day
Use Cases
- • Publishing midday content updates
- • Sending lunchtime summary emails
- • Triggering midday data synchronization
- • Running afternoon batch jobs
Code Examples
Crontab
# At 12:00 every day
0 12 * * * /path/to/your/script.sh GitHub Actions
name: Scheduled Job
on:
schedule:
- cron: '0 12 * * *'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "Running Daily at Noon" systemd Timer
[Unit]
Description=Daily at Noon timer
[Timer]
OnCalendar=*-*-* *:*:00
Persistent=true
[Install]
WantedBy=timers.target node-cron (Node.js)
import cron from 'node-cron'
// At 12:00 every day
cron.schedule('0 12 * * *', () => {
console.log('Running Daily at Noon')
}) Spring (@Scheduled, Java)
// At 12:00 every day
@Scheduled(cron = "0 0 12 * * *")
public void run() {
// your task
} Spring cron has 6 fields (a leading seconds field), so a 0 is prepended to the standard 5-field expression.
Tips
- ✓ Cron uses 24-hour time, so 12 means noon, not midnight
- ✓ A good time for reports aimed at business users during the workday
- ✓ Avoids the midnight rush when many cron jobs compete for resources
- ✓ Consider time zones if users are distributed globally
Frequently Asked Questions
How do I specify noon in cron?
Use 0 12 * * *. Cron uses 24-hour format, so 12 is noon and 0 is midnight.
Can I combine noon and midnight in one expression?
Not in a single expression, but you can use 0 0,12 * * * to run at both midnight and noon.