-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comic Number and Comic Date #14
base: master
Are you sure you want to change the base?
Conversation
Moved functions to before class definitions, allowing using the API to be nicer (now allows the IDE to recognize functions) and for my editor to stop screaming at me
Options for YMD, DMY, and MDY
Thanks for the interest! For |
I converted it to datetime now, the only thing is that I had to import the |
Hi @Kixiron, I believe these changes look okay. However, a few general stylistic comments.
|
I'm really sorry, but I have no idea what to do with git bash, as I usually use the desktop app. |
Added two functions to the
Comic
class:Get Date
Returns the comic's date in one of three formats, defaulting to Month/Day/Year
Possible formats:
MYD
DMY
MDY
More formats are easily added, I just chose the most used ones globally.
Edit: Now the date is returned as datetime
Get Comic Number
getNumber()
Pretty simple, returns the comic's number. Just a nice quality of life thing for people who use the API.
Further Changes:
Moved function definitions before class definitions, mostly to make my editor stop screaming at me.
Formatting
My formatting might be off, as I usually use spaces, but if there are any problems that I missed, they'll be easy enough to fix