In the code i have set the timer as just 10 years, But in the UI it is comming as 10 years & 12 hours…, any specific reason for this?
We use the
ms library for parsing durations that has different logic from the UI, which converts durations from the server into human readable form.
ms('10 years') returns
315576000000, which is just over 10 years.
Looking at the source code for that package a year is defined as 365.25 days (a Julian year which takes into account leap years).