3 ms·
I guess Temporal will help you there[1]: const now = Temporal.now.absolute(); const then = Temporal.Absolute.from( '1989-11-09T22:45:00+0100[Euro
by runarberg 6y ago
I guess Temporal will help you there[1]:
const now = Temporal.now.absolute();
const then = Temporal.Absolute.from(
'1989-11-09T22:45:00+0100[Europe/Berlin]',
);
const sinceThen = now.difference(then);
sinceThen.toLocaleString('en');
1: https://tc39.es/proposal-temporal/docs/duration.html#toLocaleString https://tc39.es/proposal-temporal/docs/duration.html#toLocal...