Lithuanian couples name their anniversaries after materials: popierinės (paper, 1 year), medinės (wood, 5), sidabrinės (silver, 25), auksinės (gold, 50). Different sources disagree on some years, and a few years have no traditional name at all, so I collected the names into one dataset with the alternatives kept side by side.

Repository: https://github.com/ello-lithuania/vestuviu-metines (JSON, CSV, Rust, Python, D)

Rust

use vestuviu_metines::{by_years, next_anniversary, Date}; fn main() { assert_eq!(by_years(25).map(|a| a.name), Some("sidabrinės")); let next = next_anniversary(Date::new(2010, 6, 12), Date::new(2026, 11, 16)); assert_eq!(next.date, Date::new(2027, 6, 12)); assert_eq!(next.years, 17); } 

next_anniversary returns the date, the number of years, the named anniversary if there is one and the days left. The 17th has no traditional name, which is why the crate also has nearest_named.

CLI: cargo install vestuviu-metines, then vestuviu-metines 25 or vestuviu-metines --data 2010-06-12.

Edge cases

  • 29 February weddings. In non-leap years the anniversary falls on 28 February (the more common convention).
  • Civil vs church ceremony on different days. The library just takes one date; which one to use is the couple's choice.

Every anniversary with its symbolism, gift ideas and wishes (in Lithuanian): vestuviumetines.lt.