Skip to content

This repository takes as input a start time and duration time and returns the resultant time

Notifications You must be signed in to change notification settings

Samaya07/time_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

time_calculator

A function add_time that takes in two required parameters and one optional parameter:

a start time in the 12-hour clock format (ending in AM or PM) a duration time that indicates the number of hours and minutes (optional) a starting day of the week, case insensitive The function should add the duration time to the start time and return the result.

If the result will be the next day, it should show (next day) after the time. If the result will be more than one day later, it should show (n days later) after the time, where "n" is the number of days later.

If the function is given the optional starting day of the week parameter, then the output should display the day of the week of the result. The day of the week in the output should appear after the time and before the number of days later.

About

This repository takes as input a start time and duration time and returns the resultant time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages