Skip to content

Add StartOfQuarter method as consistent alias for BeginningOfQuarter#85

Open
walle250ai wants to merge 1 commit into
jinzhu:masterfrom
walle250ai:feature/start-of-quarter
Open

Add StartOfQuarter method as consistent alias for BeginningOfQuarter#85
walle250ai wants to merge 1 commit into
jinzhu:masterfrom
walle250ai:feature/start-of-quarter

Conversation

@walle250ai
Copy link
Copy Markdown

Summary

  • Add StartOfQuarter() time.Time method to Now struct — returns the first moment of the current quarter (Jan 1 / Apr 1 / Jul 1 / Oct 1 at 00:00:00)
  • Expose as a package-level function in main.go
  • StartOfQuarter acts as a consistent naming alias for BeginningOfQuarter, pairing symmetrically with the existing EndOfQuarter
  • Add unit tests covering all four quarters: first day, mid-quarter date, last day, and boundary nanosecond timestamps

Adds StartOfQuarter() method to Now struct and as a package-level function,
providing a consistent naming pair with EndOfQuarter(). Includes tests
covering all four quarters at first day, mid, and last day.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant