gigasecond: Adopt functional style

As discussed in #79.
Merge pull request #88 from sjakobi/functional-gigasecond

gigasecond: Adopt functional style