Implement new Concept Exercise: time-duration
This issue describes how to implement the time-duration concept exercise for the Go track.
Getting started
The docs can be found here
Goal
The goal of this exercise is to teach the student how concept time and duration is implemented in Go.
Learning objectives
- Define the relation between time.Time and time.Duration.
- Know how to measure time using time.Since ( e.g. execution time of a function -- no
defer!) . - Know how to use
time.Addandtime.Sub - Know about time units and maybe do some calculations
Out of scope
- Measuring time should to include
defer - Sleep, After, ticker etc.
Concepts
-
time-duration
Prerequisites
-
time
Resources to refer to
Story Idea
There is already a possible story including tasks in the story list: https://exercism.org/docs/building/tracks/stories/datetimes-time-keeper This might be helpful as a template.
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.
@oanaOM can I take this issue. I want to do my first contribution to get started with doing mentorship in exercism website
Great! It's yours @SourangshuGhosh !
@junedev I'd like to work on this
- [x] Finish exercise "Booking up for Beauty"
- [x] Review PR #2243 (and associated Go By Example page
- [x] Review concept exercise "The Time Keeper"
- [x] Create files and directories in
$PROJECT_ROOT/exercises/concept/the-time-keeperbased on this documentation - [ ] Solve and test exercise locally with functionality:
- [x] race duration
- [x] timezone difference
- [ ] fix offline device
- [x] recalculate start
- [x] filter stray times
- [ ] leaderboard
- [ ] Create PR
@saurabhmshr Are you still working on this?
@junedev yes - I plan on having it out for review by Monday 24th October.
EDIT: Updated previous comment with sub-tasks for functionality