Skip to content

Times lib: implement time.ISOWeek#482

Open
sibebleuze wants to merge 1 commit into
d5:masterfrom
sibebleuze:times-lib-isoweek
Open

Times lib: implement time.ISOWeek#482
sibebleuze wants to merge 1 commit into
d5:masterfrom
sibebleuze:times-lib-isoweek

Conversation

@sibebleuze

Copy link
Copy Markdown

I think having time.ISOWeek available in Tengo would be useful. Implementing it within Tengo with the currently available functionality in the times lib, while not impossible, is cumbersome.

Open question: the Golang function time.ISOWeek() returns both a year and a week number. Currently, this PR only uses the week number, discarding the year completely. Is there a reason to also expose the returned year and if so, could/should that be done in the same function or in a separate one?

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