From a20f3297107a3ef430cee2c3504208384464461b Mon Sep 17 00:00:00 2001 From: Louis Capitanchik <contact@louiscap.co> Date: Wed, 4 Jan 2023 15:18:55 +0000 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8645a3c..9a60646 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Provides `Spot`, a version of `Instant` that works both on desktop and the web. On desktop, the internal representation uses `std::time::Instant`. On the web, the internal representation is an `f64`, and uses `js_sys::Date` methods to cover functinality where required +All the methods on `Instant` are implemented for `Spot`, so you can just replace uses of `std::time::Instant` with `web_instant::Spot` + ## Install `cargo add web_instant` -- GitLab