Tracks
/
Rust
Rust
/
Exercises
/
Gigasecond
Gigasecond

Gigasecond

Easy

Instructions

Given a moment, determine the moment that would be after a gigasecond has passed.

A gigasecond is 10^9 (1,000,000,000) seconds.

If you're unsure what operations you can perform on PrimitiveDateTime take a look at the time crate which is listed as a dependency in the Cargo.toml file for this exercise.

Last updated 2 December 2021
Edit via GitHub The link opens in a new window or tab
Rust Exercism

Ready to start Gigasecond?

Sign up to Exercism to learn and master Rust with 12 concepts, 103 exercises, and real human mentoring, all for free.