now icon indicating copy to clipboard operation
now copied to clipboard

Add weekday helpers, fluent methods, and format constants

Open dfang opened this issue 3 months ago • 0 comments

This PR introduces several improvements and documentation updates:

  • Add weekday helper functions (Tuesday-Saturday) and refactor weekday logic via weekdayHelper
  • Add fluent methods: Add, AddDays, AddWeeks, AddMonths, AddYears
  • Add format convenience methods and common date/time format constants
  • Add time checking and calculation helpers (IsYesterday/IsTomorrow/IsSameWeek, etc.)
  • Fix README ISO8601 example and expand docs for new features
  • Align formatter methods with shared layout constants

All tests pass: `go test ./...` Notes:

  • MonthsUntil/MonthsSince are approximate (year*12 + month), by design.
  • Consider adding tests for WeeksUntil/WeeksSince and month boundary cases.

dfang avatar Sep 12 '25 09:09 dfang