-
Notifications
You must be signed in to change notification settings - Fork 102
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
[request]millisecond support #127
Comments
If the millisecond digits were separated by dots, they read correctly, but not if they were colons. |
A clear description with an example, which format specifier you are using, what you observe and what you expect instead, would improve this issue. |
Oh sorry. That's right. Example of how it does work
Examples of how it doesn't work
Expected output
We want to be able to separate all digits with a colon. One solution is to mimic dateutil.parser's response to the American date format (e.g., 1/12/2000) with the option "dayfirst=True" when the day is written first. Sorry if the English meaning is hard to understand. I'm writing using DeepL translation as my English is not good. |
I apologise that my library handles localisation so poorly :-( I honestly am not sure how to address this issue though. I really don't like the idea of adding in an option flag like you suggest, as I feel like it is a slippery slope of complication in the API. However, I'm not sure what alternative there is. Do you think it might be reasonable to just request that either:
|
It all depends on your design philosophy, but I think it's better to do 2 first, and then juxtapose 1 and 2 when the implementation is complete. I agree that adding more and more options is a way to increase the complexity. I don't know the potential demand for this feature, and I can't build an algorithm that complex, so I can only offer my opinion (if I could, I would have sent a pull request in the first place! :’‐( ) But for now, I'd like you to try to implement it in the way described above. In your spare time. |
Since parse v1.20.1 you can use the strptime directives:
|
Unless I'm mistaken, this library does not support milliseconds. This library is very useful, but the lack of millisecond support is a letdown. Please support milliseconds to make it easier to use.
The text was updated successfully, but these errors were encountered: