README.md: Show how to interact with Python's datetime #304
Replies: 2 comments 2 replies
-
|
Hi @Feuermurmel thanks for posting. I'm always happy to hear about people using the library.
I do mention it at the end of the "quickstart" section. It's not that prominent though. One thing I'm considering is adding the conversion from Do you have any thoughts on what parts of the readme could be de-emphasized, do make space for this?
I'm open to this, since the constructors already support |
Beta Was this translation helpful? Give feedback.
-
|
I'm happy to hear somebody appreciates API docs 😄 . My focus at the moment is making the last breaking changes before 1.x, but I hope to give the API docs a proper refresh after that.
My intention with these 'virtual' base classes was to avoid overly duplicated definitions. But considering the downsides of the current approach, I agree it's probably best to just make a "big simple list".
Regarding docs styling I try to stick with the defaults, so there are no surprises. Unfortunate the it isn't so intuitive then. The "main TOC on left, page TOC on the right" seems to be something mainstream in Python documentation themes. I'll have a look what can be customized here. The theme I'm using is very popular so should offer good, readable, customization. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I heard about this library while doing some research (after a switch from
pytzto Python'szoneinfobroke some time calculations in our codebase). I'm very interested to follow the library. The first question I had, and I'm bringing this up because I think others might also have that question, is how easy it is to interact with Python's
datetime.I found it in the docs at Overview (To and from the standard library). But maybe, since it's so short, copy that to the Readme?
Also, since we're on the topic, I have some input on that part of the API: I'd prefer it if converting from
datetimeto e.g.ZonedDateTimeworked by calling the class:I'm assuming that this is what many Python developers would expect, or at least find intuitive. Type conversions in Python are often done by calling the class (
str(),list(),UUID()).Thanks!
Beta Was this translation helpful? Give feedback.
All reactions