RINK-DATES(5)
π NAME π
rink-dates β Rink file format for date patterns. Bestie, this is the RINK-DATES(5) page, and itβs lowkey the blueprint for how Rink understands dates. ποΈβ¨
SYNPOSIS β¨
Rink lets you specify datetimes using #date# syntax in queries. This file defines the patterns that are used to try to match the specified date. No cap, thatβs the whole vibe. π
ποΈ DESCRIPTION ποΈ
Blank lines are ignored. Lines starting with # are ignored too. Easy.
A date pattern is a sequence of keywords, and each keyword specifies a token to match. Part of the sequence can be wrapped with [] to make it optional. Cute, right? π
The valid keywords π«
fullyearβ The full 4 digit year, like2024. Must be exactly 4 digits.shortyearβ Shortened 2-digit year, like24. Must be exactly 2 digits.centuryβ The year with the last 2 digits cut off, like20. Not the same as the actual century number (which would be21). Must be exactly 2 digits.monthnumβ The current month number, like03. Must be exactly 2 digits.dayβ The current day of the month, like3. Can be any number of digits.fulldayβ The current day of the month, like03. Must be exactly 2 digits.minβ The current minute of the hour, like05. Must be exactly 2 digits.ordinalβ The current day of the year, like083. Must be exactly 3 digits.isoyearβ The ISO year, like-0001. Must be exactly 4 digits. ISO year unifies CE and BCE such that1BCis year0, and2BCEis year-1.yearβ The current year, like2024. Can be any number of digits.adbcβ Looks forad,ce,bc, orbce(case insensitive). This allows specifying dates prior to year 1 CE.hour12β The current hour on a 12-hour clock. Must be exactly 2 digits.hour24β The current hour on a 24-hour clock. Must be exactly 2 digits.meridiemβ Looks foramorpm(case insensitive). This allows specifying 12-hour time.secβ The current second of the current minute. Must be exactly 2 digits. Can optionally have a decimal point to specify time smaller than a second.offsetβ Matches a timezone offset. This can either be the name of a timezone likeUS/Pacificor a fixed offset. The fixed offset can either be in the form+07:00or+0700.monthnameβ Matches English month names, case insensitive. Recognizes 3-letter names (likejan,feb,mar) and full names.weekdayβ Matches English weekday names, case insensitive. Recognizes 3-letter names (likemon,tue,wed) and full names.todayβ Use the current date, but not the time. Most useful when combined withrelative.nowβ Use the current time and date. Most useful when combined withrelative.relativeβ Matches a relative unit, like+1hto add 1 hour, or-7weekto subtract 7 weeks. This is calendar aware, instead of working in seconds.-β Matches a literal-character.:β Matches a literal:character.β A single space will match any amount of whitespace.&β Allows putting two terms directly next to each other without spaces in between.' <anything> 'β Wrapping text in single quotes will match that text literally.
π FILES π
Rink searches the following locations:
./datepatterns.txt$XDG_CONFIG_DIR/rink/datepatterns.txt/usr/share/rink/datepatterns.txt
π SEE ALSO π
rink(1), rink(5), rink(7), rink-defs(5)
π Thatβs the whole page, bestie! Source/version:Rink Manual. Date:2026-08-30. You understood the assignment. Periodt. π β¨
π¦ where this page comes from
- arch rolling: rink 0.9.0-1 Β· GPL-3.0-or-later AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms