Rust Gigasecond

So I am a beginner and I would like to learn rust, but I’m stuck at the gigasecond exercise. Is there anyone who would be willing to explain the principals I need to know while leaving the rest to me to figure out? I tried finding help online but I wasn’t very lucky.

Are you new to programming at all? You may learn the basics of programming in an easier to learn language or start with Jiki , the learning platform for programming essentials.

Is this your first Rust excercise? Did you read through the Rust track docs for Rust learning ressources?

Or do you seek advise on the approach to Gigasecond? Have you discovered the “Get help” tab in the right column of Online Editor or the README when working locally?

1 Like

So, I am pretty new at all with a little experience with python and trying to learn rust, but I will anyways look into Jiki as I am very inexperienced. It is not my first exercise with rust an I have read some of the docs. I originally made this post seeking advise for the gigasecound.

Gigaseconds is about converting dates into what is called Unix timestamps, date and time expressed in seconds. Nearly every language with a time library (the Rust one is called time crate, see the link in the end of the exercise description) supports such conversions.

So basically Gigasecond is about reading the docs to finding a way to convert dates to seconds and do math with them. Studying the time crate pays of immensely in day-to-day work, as dates and time are a mess and libraries do a great job of helping us here.

I hope this helps. You can ask more specific questions, we want you to succeed with programming.

1 Like

Thanks so mutch.