Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-rosetta/blob/main/exercises/space-age/space-age.om # omega-rosetta aien-dev/omega-rosetta Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-rosetta / exercises / space-age / space-age.om` 12 lines ยท 664 bytes Raw Blame History 1 note Exercism-style exercise "space-age": https://exercism.org/tracks/python/exercises/space-age 2 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 note age is how old someone of the given seconds is in years of planet: one Earth year is `31557600` 4 note seconds; orbital periods in Earth years are Mercury 0.`2408467`, Venus 0.`61519726`, Earth 1.0, 5 note Mars 1.`8808158`, Jupiter 11.862615, Saturn 29.447498, Uranus 84.016846, Neptune 164.79132. 6 note age is -1.0 when planet is not one of these names. 7 note Check it with: sh exercise.sh exercises/space-age 8 om2 9 fn age planet view uchar * seconds f64 to f64 10 note replace this line with your solution 11 trap 13 12 end