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

Also calculate time to go #2

Open
chandrashan opened this issue Mar 30, 2020 · 1 comment
Open

Also calculate time to go #2

chandrashan opened this issue Mar 30, 2020 · 1 comment

Comments

@chandrashan
Copy link

Currently designed to calculate how long ago something was.

I have modified it to a formatTimeUntil() function which just swaps the timestamp around and gives the time until.

Could either have two functions - formatTimeUntil() and formatTimeAgo(), or get clever and combine the two into one function automatically. Am relatively new to Dart - but perhaps by taking the 'absolute' value then it should be pretty easy to keep things consistent?

if I work out how to add a pull request I'll submit...

@chandrashan
Copy link
Author

chandrashan commented Mar 30, 2020

submitted pull request #3 which adds in this functionality and for issue #1

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

1 participant