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

How long until the alarm goes off? #4

Open
kkotelczuk opened this issue Oct 22, 2019 · 1 comment
Open

How long until the alarm goes off? #4

kkotelczuk opened this issue Oct 22, 2019 · 1 comment
Labels

Comments

@kkotelczuk
Copy link

Nobody wants to be late at work. I'm not that good at calculating the perfect time to go to sleep. I want your help with that. Define a function, which tells me, for how long I will have been sleeping since now.

Example of usage:

alarm('5:30');

Expected output/return value when run at 23 (11 PM):

> I will have been sleeping for 6 hours and 30 minutes.

Additional info:

We'll use 24-hour time format.

@JSmurf
Copy link

JSmurf commented Oct 22, 2019

I'd love to take a stab at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants