From 074a812e4a0782baa7c7f88dcddf1c8d04b56d99 Mon Sep 17 00:00:00 2001 From: Leonardo Yvens Date: Sat, 17 Jun 2017 18:54:09 -0300 Subject: [PATCH 1/2] Add hints to gigasecond lib.rs The signature of the function is not at all obvious. --- exercises/gigasecond/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exercises/gigasecond/src/lib.rs b/exercises/gigasecond/src/lib.rs index e69de29bb..908e551e9 100644 --- a/exercises/gigasecond/src/lib.rs +++ b/exercises/gigasecond/src/lib.rs @@ -0,0 +1,6 @@ +extern crate chrono; +use chrono::*; + +pub fn after(start: DateTime) -> DateTime { + // Return a UTC DateTime one billion seconds after start. +} From 0eef6ff76c73fdfeca05e1ef2837937db9cd75c2 Mon Sep 17 00:00:00 2001 From: Peter Tseng Date: Mon, 19 Jun 2017 19:35:44 -0700 Subject: [PATCH 2/2] move up --- exercises/gigasecond/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/gigasecond/src/lib.rs b/exercises/gigasecond/src/lib.rs index 908e551e9..8fc2085bc 100644 --- a/exercises/gigasecond/src/lib.rs +++ b/exercises/gigasecond/src/lib.rs @@ -1,6 +1,7 @@ extern crate chrono; use chrono::*; +// Returns a UTC DateTime one billion seconds after start. pub fn after(start: DateTime) -> DateTime { - // Return a UTC DateTime one billion seconds after start. + unimplemented!() }