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

time: should times and durations be sortable? #5019

Closed
robpike opened this issue Mar 9, 2013 · 4 comments

Comments

Projects
None yet
4 participants
@robpike
Copy link
Contributor

commented Mar 9, 2013

What is the best way to sort a slice of times? It might be worth providing the hooks in
the time package for that. This is just a reminder to think about the issue.
@rsc

This comment has been minimized.

Copy link
Contributor

commented Dec 4, 2013

Comment 1:

Labels changed: added repo-main.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Mar 3, 2014

Comment 2:

Adding Release=None to all Priority=Someday bugs.

Labels changed: added release-none.

@sbinet

This comment has been minimized.

Copy link
Member

commented Feb 13, 2015

@robpike

This comment has been minimized.

Copy link
Contributor Author

commented Feb 13, 2015

Closing as not worthwhile.

@robpike robpike closed this Feb 13, 2015

sbinet added a commit to sbinet/golang-go that referenced this issue Feb 19, 2015

time: add Slice to sort times
Slice is a []Time satisfying sort.Interface by leveraging
Time.Before(t) to sort times in increasing order.

Fixes golang#5019

Change-Id: If97d3b070f0ebc14e3ac0b8eb06adf7e9cfd3462

@golang golang locked and limited conversation to collaborators Jun 24, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.