Sha256: 2bd55ac2f10806640e7662e373ad1737eededbbc6666139e012fd02c1cf223a8
Contents?: true
Size: 358 Bytes
Versions: 41
Compression:
Stored size: 358 Bytes
Contents
import math, tables let times = { "Earth": 31558149.76, "Mercury": 7600530.24, "Venus": 19413907.2, "Mars": 59354294.4, "Jupiter": 374335776.0, "Saturn": 929596608.0, "Uranus": 2661041808.0, "Neptune": 5200418592.0 }.toTable proc age*(planet: string, seconds: int64): float = round(seconds.float / times[planet], 2)
Version data entries
41 entries across 41 versions & 1 rubygems