TL;DR
In the world of human timekeeping, 1+1 doesn't always equal 2. If it’s 1:59 AM on the night we "spring forward" for Daylight Saving, adding one minute lands you at 3:00 AM, not 2:00 AM. This paper introduces CivilTime-Bench, a rigorous new benchmark designed to see if Large Language Models (LLMs) can handle the messy, non-linear logic of time zones, leap hours, and international date lines—revealing that while AI is getting better at following formatting rules, it still frequently trips over the actual math of our calendars.
What Problem Does This Paper Address?
We treat time as a linear progression, but "civil time"—the time on our clocks—is a patchwork of political and geographical rules. Between Daylight Saving Time (DST) transitions, non-hour UTC offsets (like Nepal’s +05:45), and the International Date Line, calendar arithmetic is a minefield for software.
Current AI models are increasingly used as personal assistants to schedule meetings or analyze server logs, yet most existing benchmarks only test "temporal ordering" (e.g., Did A happen before B?). They don't test the gritty, high-stakes arithmetic of timestamps. The authors argue that we need to distinguish between two types of failures: formatting errors (the model didn't use ISO-8601) and reasoning errors (the model used the right format but calculated the wrong hour).
Methods
The researchers developed a two-pronged approach to evaluate seven prominent LLMs (including Gemma-2, Mistral-7B, Qwen-2.5, Llama-3.1, Phi-4, Gemini 2.5 Flash Lite, and GPT-5-nano).
- Strict Output Contracts: To stop models from "yapping" and help isolate reasoning from formatting, the models were required to follow a strict one-line output format (e.g.,
YYYY-MM-DDThh:mm:ss±hh:mm). - Prompting Regimes: They tested models under three conditions:
- Baseline Zero-Shot: Minimal instructions.
- Contract-Aware: Explicitly telling the model the output rules and civil-time conventions.
- In-Context Learning (ICL): Providing 2, 4, or 8 examples of solved problems.
- Fine-Tuning: They used QLoRA (a memory-efficient training technique) to see if models could "learn" the rules of the calendar from 60,000 training examples.
Datasets
The study introduces two new datasets:
- SyntheticTimeBench: A massive collection of 60,011 training and 10,000 evaluation examples generated programmatically. It covers 11 "stressors," including DST skips, DST repeats (the "extra hour" in fall), and ISO week boundaries.
- HumanTime-500: A smaller, high-quality set of 500 scenarios authored by LLMs but strictly validated by humans. These are designed to look like real-world problems (e.g., "I'm flying from Honolulu to Kiritimati on New Year's Eve...") to test how well models generalize beyond synthetic templates.
Key Insights and Ideas
- Formatting ≠ Reasoning: This is the paper's "aha moment." As shown in Figure 1, a model might learn to produce a perfectly formatted timestamp (improving its "FormatOK" score) while still getting the actual time wrong. Formatting is a surface-level skill; calendrical arithmetic is a deep reasoning skill.
- The "Frontier" Gap: There is a massive gulf between top-tier proprietary models and open-source ones. GPT-5-nano and Gemini 2.5 Flash Lite were significantly more robust at handling these edge cases out of the box compared to models like Mistral or Llama.
- The Generalization Trap: Models fine-tuned on the synthetic data became "specialists" that crushed the synthetic test (74–86% accuracy) but failed miserably on the naturalistic
HumanTime-500(dropping to 36–45%). This suggests models are memorizing templates rather than learning the underlying "physics" of time.
Key Results
- Zero-Shot Performance: On the realistic
HumanTime-500set, open-source models struggled, scoring between 10.2% and 28.0% Exact Match (EM). In contrast, GPT-5-nano reached 73.2%. - Prompting Effects: Contract-aware prompting (explaining the rules) helped models like Phi-4 jump from 74.6% to 97.8% in format compliance, but its actual accuracy dropped from 40.8% to 35.8%.
- Task Difficulty: Models are generally okay at simple offsets but fail spectacularly at the International Date Line and DST "skips."
Limitations and Future Work
The authors acknowledge several boundaries to their work:
- Gregorian Bias: The benchmark currently only handles the Gregorian calendar. Future work is needed for Hijri, Solar Hijri, or Lunar calendars.
- Static Rules: It assumes a fixed set of time zone rules (IANA database). In reality, governments change DST rules frequently, and models need to be able to handle these updates.
- No "Floating" Holidays: The benchmark doesn't yet account for business-day logic involving holidays like Easter or Lunar New Year, which shift every year.
- Tool Use: The study focused on pure "mental math" by the LLMs. A promising future direction is testing how well LLMs can use external tools (like Python's
pytzlibrary) to solve these problems instead of doing them in their "heads."
Summary updated