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

implement strftime equivalent for undate objects #78

Open
3 tasks
rlskoeser opened this issue Jun 6, 2024 · 0 comments
Open
3 tasks

implement strftime equivalent for undate objects #78

rlskoeser opened this issue Jun 6, 2024 · 0 comments
Assignees

Comments

@rlskoeser
Copy link
Member

rlskoeser commented Jun 6, 2024

roughly equivalent to datetime.strftime but aware of the partially known, unknown, uncertain, etc.

may be able to adapt from related work from Shakespeare and Company Project, which has a custom django template tag for partial dates that works like the django built-in date template tag with handling for unknown parts of the date

  • preliminary version: support available formatters in the undate package: implementation in preliminary str parse and format methods #90
  • basic version: support syntax analogous to datetime strftime subset for dates - adapt S&co template code if possible
  • expanded version: support different locales (maybe using babel ?)
@rlskoeser rlskoeser self-assigned this Aug 30, 2024
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

No branches or pull requests

1 participant