RINK-DATES(5)

πŸ“¦
version 0.9.0 Β· 3 versions
, in arch rolling

πŸ’– 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, like 2024. Must be exactly 4 digits.
  • shortyear β€” Shortened 2-digit year, like 24. Must be exactly 2 digits.
  • century β€” The year with the last 2 digits cut off, like 20. Not the same as the actual century number (which would be 21). Must be exactly 2 digits.
  • monthnum β€” The current month number, like 03. Must be exactly 2 digits.
  • day β€” The current day of the month, like 3. Can be any number of digits.
  • fullday β€” The current day of the month, like 03. Must be exactly 2 digits.
  • min β€” The current minute of the hour, like 05. Must be exactly 2 digits.
  • ordinal β€” The current day of the year, like 083. Must be exactly 3 digits.
  • isoyear β€” The ISO year, like -0001. Must be exactly 4 digits. ISO year unifies CE and BCE such that 1BC is year 0, and 2BCE is year -1.
  • year β€” The current year, like 2024. Can be any number of digits.
  • adbc β€” Looks for ad, ce, bc, or bce (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 for am or pm (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 like US/Pacific or a fixed offset. The fixed offset can either be in the form +07:00 or +0700.
  • monthname β€” Matches English month names, case insensitive. Recognizes 3-letter names (like jan, feb, mar) and full names.
  • weekday β€” Matches English weekday names, case insensitive. Recognizes 3-letter names (like mon, tue, wed) and full names.
  • today β€” Use the current date, but not the time. Most useful when combined with relative.
  • now β€” Use the current time and date. Most useful when combined with relative.
  • relative β€” Matches a relative unit, like +1h to add 1 hour, or -7week to 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