-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
sweepAssigns Sweep to an issue or pull request.Assigns Sweep to an issue or pull request.
Description
Checklist
-
prettytime.py
- Add a new method called
_printto thetclass. This method should return a string that represents the time in a pretty format. The exact format will depend on the attributes of thetobject. For example, if thetobject represents 3 days, the_printmethod could return the string "3 days".
• Add a new method called_printto thePrettyDeltaclass. This method should return a string that represents the time in a pretty format. The exact format will depend on the attributes of thePrettyDeltaobject. For example, if thePrettyDeltaobject represents 2 hours from now, the_printmethod could return the string "2 hours from now".
• Add a new method called_printto thePrettyDelta2class. This method should return a string that represents the time in a pretty format. The exact format will depend on the attributes of thePrettyDelta2object. For example, if thePrettyDelta2object represents 1 week ago, the_printmethod could return the string "1 week ago".
-
README.md
- Add a new section called "Pretty Printing". In this section, explain that users can call the
._print()method on any PrettyTime object to get a pretty-printed string of the time. Provide some examples of how to use the._print()method.
sweep-ai-deprecated
Metadata
Metadata
Assignees
Labels
sweepAssigns Sweep to an issue or pull request.Assigns Sweep to an issue or pull request.