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 date formatting for datetime etc instances #57

Open
GoogleCodeExporter opened this issue Sep 1, 2015 · 3 comments
Open

Add date formatting for datetime etc instances #57

GoogleCodeExporter opened this issue Sep 1, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

It's useful to be able to specify a format for datetime values. I've attached a 
diff that provides this functionality, basically by copying the float and int 
formatting. It's applied to any object with a "strftime" method, which catches 
date, time and datetime.

The validation of the format is pretty minimal, because you can put basically 
anything in a strftime format. I wondered whether it was worth it, but I left 
it as it's easier to extend the checks in the future if needed.

Original issue reported on code.google.com by p.f.mo...@gmail.com on 28 Aug 2014 at 1:31

Attachments:

@GoogleCodeExporter
Copy link
Author

This is actually an enhancement request, but I couldn't see a way of setting 
the type :-(

Original comment by p.f.mo...@gmail.com on 28 Aug 2014 at 1:32

@GoogleCodeExporter
Copy link
Author

Hey, just want to let you know I've seen your request, and I'll take a look at 
it this weekend. Thanks for your work!

Original comment by john.fil...@gmail.com on 9 Sep 2014 at 11:39

@GoogleCodeExporter
Copy link
Author

Original comment by john.fil...@gmail.com on 9 Sep 2014 at 11:42

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant