rastrillo / fiesta Public

Clone
git clone https://amadan.net/rastrillo/fiesta

Plain git — no account needed to clone.

Download

Download this file

1[
2 {"id": "today", "input": "今天", "now": "2026-08-28T10:30", "expected": "2026-08-28T09:00"},
3 {"id": "tomorrow", "input": "明天", "now": "2026-08-28T10:30", "expected": "2026-08-29T09:00"},
4 {"id": "yesterday", "input": "昨天", "now": "2026-08-28T10:30", "expected": "2026-08-27T09:00"},
5
6 {"id": "in-3-days-affixed", "input": "3天后", "now": "2026-08-28T10:30", "expected": "2026-08-31T09:00"},
7 {"id": "in-2-weeks-affixed", "input": "2周后", "now": "2026-08-28T10:30", "expected": "2026-09-11T09:00"},
8 {"id": "days-ago-affixed", "input": "2天前", "now": "2026-08-28T10:30", "expected": "2026-08-26T09:00"},
9 {"id": "in-2-hours-affixed", "input": "2小时后", "now": "2026-08-28T10:30", "expected": "2026-08-28T12:30"},
10 {"id": "in-30-minutes-affixed", "input": "30分钟后", "now": "2026-08-28T10:30", "expected": "2026-08-28T11:00"},
11 {"id": "in-3-months-affixed", "input": "3个月后", "now": "2026-08-28T10:30", "expected": "2026-11-28T09:00"},
12
13 {"id": "next-week", "input": "下周", "now": "2026-08-28T10:30", "expected": "2026-09-04T09:00"},
14 {"id": "last-week", "input": "上周", "now": "2026-08-28T10:30", "expected": "2026-08-21T09:00"},
15 {"id": "next-month", "input": "下个月", "now": "2026-08-28T10:30", "expected": "2026-09-28T09:00"},
16
17 {"id": "bare-weekday-never-today", "input": "星期五", "now": "2026-08-28T10:30", "expected": "2026-09-04T09:00"},
18 {"id": "abbreviated-weekday", "input": "周五", "now": "2026-08-28T10:30", "expected": "2026-09-04T09:00"},
19
20 {"id": "numbered-month-and-a-day-counter", "input": "12月25日", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
21 {"id": "the-hao-day-counter", "input": "12月25号", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
22 {"id": "spelled-month-and-a-day-counter", "input": "十二月25日", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
23 {"id": "counter-date-and-a-half-day-clock", "input": "12月25日下午6点", "now": "2026-08-28T10:30", "expected": "2026-12-25T18:00"},
24
25 {"id": "noon", "input": "中午", "now": "2026-08-28T10:30", "expected": "2026-08-28T12:00"},
26 {"id": "midnight", "input": "午夜", "now": "2026-08-28T10:30", "expected": "2026-08-28T00:00"},
27 {"id": "afternoon-hour", "input": "下午6点", "now": "2026-08-28T10:30", "expected": "2026-08-28T18:00"},
28 {"id": "morning-hour-and-minute", "input": "上午9点30分", "now": "2026-08-28T10:30", "expected": "2026-08-28T09:30"},
29 {"id": "tomorrow-and-an-afternoon-hour", "input": "明天下午6点", "now": "2026-08-28T10:30", "expected": "2026-08-29T18:00"},
30 {"id": "fullwidth-comma-separates", "input": "明天,下午6点", "now": "2026-08-28T10:30", "expected": "2026-08-29T18:00"},
31 {"id": "clock", "input": "14:30", "now": "2026-08-28T10:30", "expected": "2026-08-28T14:30"},
32 {"id": "tomorrow-and-a-wire-clock", "input": "明天18:00", "now": "2026-08-28T10:30", "expected": "2026-08-29T18:00"},
33
34 {"id": "wire-date", "input": "2026-12-25", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
35 {"id": "year-first-with-slashes", "input": "2026/12/25", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
36 {"id": "own-display-reads-back", "input": "2026年12月25日周五", "now": "2026-08-28T10:30", "expected": "2026-12-25T09:00"},
37 {"id": "own-datetime-display-reads-back", "input": "2026年12月25日周五 15:30", "now": "2026-08-28T10:30", "expected": "2026-12-25T15:30"},
38 {"id": "bare-year-is-not-a-month", "input": "2025", "now": "2026-08-28T10:30", "expected": "2025-08-28T09:00"},
39
40 {"id": "no-phrase-inside-a-word", "input": "atlas", "now": "2026-08-28T10:30", "expected": null},
41 {"id": "impossible-hour-with-a-meridiem", "input": "下午25点", "now": "2026-08-28T10:30", "expected": null},
42 {"id": "impossible-month-in-a-counter-date", "input": "13月1日", "now": "2026-08-28T10:30", "expected": null}
43]
44