fred-timestamp
v1.0.4
Published
New area has started by Fred leaving mySugr, therefore it make sense to introduce a new way of calculating time
Readme
USAGE
1. Install
npm i fred-timestamp -s2. Import
import ADF from "fred-timestamp";3. Use
import React from "react";
import "./App.css";
import ADF from "fred-timestamp";
function App() {
return (
<div className="App">
{ADF.inSeconds() >= 0 ? (
<div> Fred left mySugr since: {ADF.inSeconds()} secs </div>
) : (
<div>
Time left until Fred leaves mySugr : {Math.abs(ADF.inSeconds())} secs
</div>
)}
</div>
);
}
export default App;