@date answers those from the calendar instead of from the model’s head. Every verb is pure, offline and read-only: no file, network or credential is touched, and the tool runs in parallel with others.
It counts from the current date, which CHATCLI_NOW pins for a whole run, so a conversation replayed from the past reads “last Saturday” against the right day.
Dates are read as
2023-03-14, 2023/03/14, 2023-03-14 18:11, RFC 3339, or the form @session prints (2023-03-14 (Tue) 18:11); today and now mean the current date.
What the answers say
diff reports calendar days (the later date minus the earlier one, ignoring the time of day), so a session saved on the 15th at 18:11 and a question on the 18th at 01:48 are 3 days apart even though 55 hours passed:
resolve states the rule it used. “Last Saturday” is the most recent Saturday strictly before the reference date, and “next Friday” the first one strictly after; expressions longer than a week (“3 weeks ago”) are labeled approximate, because people mean the days around them.
Notes
- Offsets are limited to ±100 000 units; a bad date or an unknown expression is an error that says what was expected, never a guess.
- The verbs also accept flat arguments (
{"from":"2023-04-01","to":"2023-04-22"}is adiff). - The memory guidance given to the agent tells it to use
@dateinstead of counting days itself; see Memory.