go icon indicating copy to clipboard operation
go copied to clipboard

Implement new Concept Exercise: time-duration

Open oanaOM opened this issue 5 years ago • 6 comments

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.Add and time.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 avatar Jul 22 '20 17:07 oanaOM

@oanaOM can I take this issue. I want to do my first contribution to get started with doing mentorship in exercism website

SourangshuGhosh avatar Jul 23 '20 17:07 SourangshuGhosh

Great! It's yours @SourangshuGhosh !

oanaOM avatar Jul 23 '20 19:07 oanaOM

@junedev I'd like to work on this

ghost avatar Aug 13 '22 19:08 ghost

  • [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-keeper based 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

ghost avatar Aug 17 '22 22:08 ghost

@saurabhmshr Are you still working on this?

junedev avatar Oct 01 '22 18:10 junedev

@junedev yes - I plan on having it out for review by Monday 24th October.

EDIT: Updated previous comment with sub-tasks for functionality

ghost avatar Oct 20 '22 13:10 ghost