Skip to content

condense time.Time library calls#3358

Merged
jycor merged 2 commits intomainfrom
james/date
Dec 30, 2025
Merged

condense time.Time library calls#3358
jycor merged 2 commits intomainfrom
james/date

Conversation

@jycor
Copy link
Copy Markdown
Contributor

@jycor jycor commented Dec 30, 2025

Instead of calling Year(), Month(), Day(), Hours(), Minutes(), and Seconds() individually, just use time.Date() and time.Clock().

Benchmarks: dolthub/dolt#10249 (comment)

@jycor jycor merged commit 7ddc25f into main Dec 30, 2025
9 checks passed
@jycor jycor deleted the james/date branch December 30, 2025 19:15
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