Skip to content

Add spec generator for gigasecond#634

Merged
ryanplusplus merged 4 commits intoexercism:mainfrom
BNAndras:gigasecond-generator
Feb 28, 2026
Merged

Add spec generator for gigasecond#634
ryanplusplus merged 4 commits intoexercism:mainfrom
BNAndras:gigasecond-generator

Conversation

@BNAndras
Copy link
Member

I did some work adding this exercise to MoonScript so I thought I'd adapt the spec generator for the Lua track.

@github-actions
Copy link
Contributor

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!


function gigasecond.anniversary(any_date)
return os.date('%x', any_date + math.pow(10, 9))
return os.date('!%x', any_date + math.pow(10, 9))
Copy link
Member

Choose a reason for hiding this comment

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

I had no idea this was a thing. For anyone else that is unfamiliar, this tells it to use UTC instead of local time.

@ryanplusplus ryanplusplus merged commit d42266d into exercism:main Feb 28, 2026
3 checks passed
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