Gigasecond in PHP
Calculate the moment when someone has lived for 10^9 seconds.
exercism fetch php gigasecond
Calculate the moment when someone has lived for 109 seconds.
A gigasecond is 109 (1,000,000,000) seconds.
Running the tests
Go to the root of your PHP exercise directory, which is
<EXERCISM_WORKSPACE>/php. To find the Exercism workspace run
% exercism debug | grep Workspace
Get PHPUnit if you don't have it already.
Execute the tests:
% ./phpunit.phar gigasecond/gigasecond_test.php
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.