kragniz / kragniz/prettytable

Add date formatting for datetime etc instances

Open
#57 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
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:
- [prettytable.diff](https://storage.googleapis.com/google-code-attachments/prettytable/issue-57/comment-0/prettytable.diff)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the attached prettytable.diff and the existing float and int formatting implementation. Confirm how the proposed formatting applies to objects with a strftime method, including date, time, and datetime instances, and ensure the requested formatting behavior is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.