I'm comparing two timestamps in angular with an unexpected result. This is my code:

```
public isAuthenticated(): boolean {

    const token = localStorage.getItem('Fakelife');
    const lifetime = new Date().getTime();
    const result = lifetime - token;
    const hoursDiff = result / (3600 * 1000);
    if ( hoursDiff > 3600 ) {
        //60 minutes were passed from start
        console.log('not expired');
        return true;
    } else {
        console.log('expired');
        return false;
    }
}

```

result of token is = 1557167443251
result of lifetime is = 1557167505672
Result of hoursDiff is 0.02560138888888889

As you see, i just want to compare if one hour has been passed. What i'm doing wrong?

always returns console.log('expired');

Thanks for your time.