I'm looking for a way to get something like: 10 minutes after taking the difference from a Date.now()
- a date already passed.
Like this:
const test: any = new DeviceModel({...device})
const difference = new Date().getTime() - test.accessTime
const accesed_at = expect : 10 minutes.
But I'm not thinking how can I do with my difference time for minutes that have already passed the date.