public static final long ONE_MONTH_INTERVAL=1000 * 60 * 60 * 24 * 30;public static final long THREE_MONTHS_INTERVAL=1000 * 60 * 60 * 24 * 90;
These 2 lines give me this warning :
Numeric overflow in expression
Rightfully indeed considering a long can reach 2,147,483,647 max and one month in milliseconds already reach 2,592,000,000
I was wondering how to avoid the overflow (beside converting it in seconds).
On a side note, how is :
Even working ? I mean milliseconds since epoch are much greater than 3 months, so how is it succssfully stored into a long ?