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

Adding date format #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sshah135
Copy link

I've made valuable improvements to the timelydiff function. Firstly, I enhanced error handling to provide clearer messages for invalid input. Now, if someone tries to use the function with a timestamp in the wrong format or if the length parameter is not a string, they'll get a helpful error message.

Moreover, I added a fantastic feature – users can now customize the date format! Whether they prefer the default format, 'dd/mm/yyyy', or 'mm/dd/yyyy', they have the flexibility to choose. This enhancement makes the function more user-friendly and adaptable to different needs.

I've thoroughly tested these changes on a separate branch ('enhance-timelydiff') to ensure a smooth integration. I believe these enhancements will make the timelydiff function even more versatile and user-friendly.

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

Successfully merging this pull request may close these issues.

1 participant