Skip to content

Conversation

@Harshithr2005
Copy link

Summary

Added a quarter property to the MayaDT class that returns the quarter of the year (1-4).

Changes

  • Added quarter property to src/maya/core.py (lines 358-368)
  • Added 16 comprehensive test cases to tests/test_maya.py
  • All tests passing
  • No breaking changes

Implementation

  • Q1: January, February, March (months 1-3)
  • Q2: April, May, June (months 4-6)
  • Q3: July, August, September (months 7-9)
  • Q4: October, November, December (months 10-12)

Testing

pytest tests/test_maya.py -k quarter -v
# 16 passed

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