Skip to content
New issue

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

add isformat method (issue #152) #168

Merged
merged 5 commits into from
Apr 24, 2020
Merged

add isformat method (issue #152) #168

merged 5 commits into from
Apr 24, 2020

Conversation

jswhit
Copy link
Collaborator

@jswhit jswhit commented Apr 23, 2020

No description provided.

@jswhit
Copy link
Collaborator Author

jswhit commented Apr 23, 2020

Should the default separator be ' ' for backwards compatibility, or 'T' for compatibility with python datetime?

@dopplershift
Copy link
Member

Awesome, thanks for taking it on!

Backward compatibility with...? I'm confused since this method didn't exist here. Wikipedia's page on ISO 8601 indicates that you can't use a space as a separator. (Under Combined Date and Time Representations).

@jswhit
Copy link
Collaborator Author

jswhit commented Apr 23, 2020

The __str__ method now uses isoformat. printing an instance now uses a blank for a separator. I suppose I can keep that, but make the default for isoformat 'T' as in python datetime.

@dopplershift
Copy link
Member

That seems like a reasonable way to structure it. I hadn't caught the change to __str__.

@jswhit jswhit merged commit 9adea4b into master Apr 24, 2020
@jswhit jswhit deleted the isoformat branch April 24, 2020 02:21
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