Feature request: Include current timestamp in system context
Resolved 💬 2 comments Opened Mar 10, 2026 by tgbateria Closed Mar 11, 2026
Summary
Claude Code currently has no awareness of the current time. Adding a simple timestamp to the system context would be an extremely low-cost improvement with high practical value.
Use Cases
- Log and incident analysis — correlating events with timestamps without having to ask the user what time it is
- Time-of-day awareness — knowing whether it's morning, evening, or late at night to adjust communication appropriately
- Scheduling context — understanding relative timing when discussing deployments, on-call rotations, or deadlines
- Elapsed time reasoning — understanding how long ago something happened based on timestamps in logs/events
Proposal
Include the current date and time (with timezone) in the system context, e.g.:
Current time: 2026-03-10T19:45:00-08:00 (PST)
This is extremely inexpensive (a single line in the system prompt) and would meaningfully improve the agent's ability to reason about time-sensitive tasks.
Current Workaround
Users can manually add a currentDate field to their memory files, but this is static and doesn't include the actual time — only the date. The agent has no way to know the current hour.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗