FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

runtime: extend builtin function DATETIME function support for time by pgammans · Pull Request #194 · projectfluent/python-fluent · GitHub

runtime: extend builtin function DATETIME function support for time - #194

Closed
pgammans wants to merge 1 commit into
projectfluent:mainfrom
bva-icx:feat_time_object_support
Closed

pgammans wants to merge 1 commit into
projectfluent:mainfrom
bva-icx:feat_time_object_support

Conversation

Copy link
Copy Markdown

The in build DATETIME function has support for python accepting datetime.datetime and datetime.date objects.
This PR extends this support and to include datetime.time.

eemeli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

My apologies, this should've really gotten merged ages ago.

@pgammans, there are a few conflicts with changes made on the main branch, would you be willing to take care of those or would you like me to do so? If you were to enable edits by maintainers, that would be a bit easier.

Comment on lines +303 to +304
if 'dateStyle' in kwargs and not isinstance(self, (datetime, date)):
raise TypeError("dateStyle option can only be specified for datetime or time instances, not date instance")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
if 'dateStyle' in kwargs and not isinstance(self, (datetime, date)):
raise TypeError("dateStyle option can only be specified for datetime or time instances, not date instance")
if 'dateStyle' in kwargs and not isinstance(self, (datetime, date)):
raise TypeError("dateStyle option can only be specified for datetime or date instances, not time instance")

eemeli commented May 28, 2026

Copy link
Copy Markdown
Member

Let's merge this in #220.

eemeli closed this May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL