import BasicPage from "../../components/basic-page-template";
import WCard from "../../components/werefox-card";
function getTimes(interval) {
let expected = Date.now() - new Date("December 11, 2020 00:00:00") + interval;
let days = Math.round(expected / 1000 / 60 / 60 / 24);
let hours = (new Date(expected).getHours() + 6) % 24;
let minutes = new Date(expected).getMinutes();
let seconds = new Date(expected).getSeconds();
return {
expected: expected,
days: days,
hours: hours,
minutes: minutes,
seconds: seconds,
};
}
export default function HRT() {
const initialTimes = getTimes(0);
const initialTimesArray = [
`${initialTimes["days"]} days, `,
`${initialTimes["hours"]} hours, `,
`${initialTimes["minutes"]} minutes, `,
`and ${initialTimes["seconds"]} seconds`,
];
console.log(initialTimesArray);
return (
I'm so glad you're interested!!
{initialTimesArray.map((t, n) => (
{t}
I have been on HRT for: