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

import datetime as date; [print(i) for i in sorted([i.rstrip() for i in lines.splitlines() if i and i[0]=='['],key=lambda x: date.datetime.strptime(x[-9:-1], "%b %Y"), reverse=True)] #4

Open
Em-Lopez opened this issue Oct 28, 2018 · 2 comments

Comments

@Em-Lopez
Copy link

Just a little script that I wrote it takes a list :) Expect more!

@sobolevn
Copy link
Owner

@Em-Lopez can you please explain why did you wrote this script and for what purpose?

@sobolevn
Copy link
Owner

You can also send a PR with this code directly to the codebase! 🙂

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

2 participants