Gigasecond in Scala
Calculate the moment when someone has lived for 10^9 seconds.
exercism fetch scala gigasecond
Calculate the moment when someone has lived for 109 seconds.
A gigasecond is 109 (1,000,000,000) seconds.
addGigaseconds accepts two different types of input.
The Scala exercises assume an SBT project scheme. The exercise solution source should be placed within the exercise directory/src/main/scala. The exercise unit tests can be found within the exercise directory/src/test/scala.
To run the tests simply run the command
sbt test in the exercise directory.
For more detailed info about the Scala track see the help page.
Chapter 9 in Chris Pine's online Learn to Program tutorial. http://pine.fm/LearnToProgram/?Chapter=09
Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.