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

Remove base60 support for time.Duration #166

Merged
merged 1 commit into from
Feb 23, 2025
Merged

Remove base60 support for time.Duration #166

merged 1 commit into from
Feb 23, 2025

Conversation

dsnet
Copy link
Collaborator

@dsnet dsnet commented Feb 22, 2025

By popular demand (or rather lack thereof), remove support for the base60 representation of a time duration.
There is no standard for this format and even the name is an attempt at naming something without clear industry basis for what this is called.

Updates golang/go#71631

By popular demand (or rather lack thereof), remove support
for the base60 representation of a time duration.
There is no standard for this format and even the name is an attempt
at naming something without clear industry basis for what this is called.

Updates golang/go#71631
@@ -214,8 +213,6 @@ func (a *durationArshaler) initFormat(format string) (ok bool) {
a.base = 1e3
case "nano":
a.base = 1e0
case "base60": // see https://en.wikipedia.org/wiki/Sexagesimal#Modern_usage
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a lost opportunity to call this format:sexagesimal 😂

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea... imagine all the bad jokes we would have to deal with if it were called that...

@dsnet dsnet merged commit d3c622f into master Feb 23, 2025
8 checks passed
@dsnet dsnet deleted the remove-base60 branch February 23, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants