We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def get_month_range(start_date=None): if start_date is None: start_date = date.today().replace(day=1) _, days_in_month = calendar.monthrange(start_date.year, start_date.month) end_date = start_date + timedelta(days=days_in_month) return (start_date, end_date)
def get_month_range(start_date=None): if start_date is None: start_date = date.today() start_date = start_date.replace(day=1) _, days_in_month = calendar.monthrange(start_date.year, start_date.month) end_date = start_date + timedelta(days=days_in_month) return (start_date, end_date)
The text was updated successfully, but these errors were encountered:
可以说一下不符合预期的结果吗。我这里试了一下没什么问题,Python 3.8.6 (32-bit)
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: