Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.93 KB

File metadata and controls

46 lines (36 loc) · 1.93 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Fixed

0.9.0 - 2026-04-28

Initial public pre-release. The library API is considered stable; documentation and internal review are still in progress ahead of v1.0.0.

Added

  • Parser type with Parse and ParseInterval methods for converting natural-language date/time strings into time.Time values and [start, end) calendar intervals.
  • Zero-dependency implementation using only the Go standard library (no regular expressions, no parser generators).
  • Configurable Parser fields: Lang, Location, Now, and DateOrder. The zero value is valid and defaults to English, time.Local, and time.Now.
  • Parser is safe for concurrent use.
  • Language support for English, Spanish, French, German, Italian, Portuguese, Russian, Japanese, and Chinese, exposed as LangEn, LangEs, LangFr, LangDe, LangIt, LangPt, LangRu, LangJa, and LangZh.
  • Package-level language lookup helpers in lookup.go.
  • Absolute date formats: ISO 8601, alternative separators (/, .), month-name forms, and locale-sensitive MM/DD/YYYY / DD/MM/YYYY parsing via DateOrder.
  • Relative expressions such as next Monday, in 3 days, 3 days ago, this week, and last month.
  • cmd/nldate CLI for ad-hoc parsing and debugging (go run ./cmd/nldate "next Monday").
  • Benchmarks (bench_test.go) and a fuzz/test suite with >95% coverage.
  • Package documentation in doc.go and contributor docs under docs/.