I am using following function to calculate time difference. It is not showing proper output. After 1 month time difference it is showing 2 minutes difference.
What is wr
Don't cast long to int, cause it will lose its precision. change all int to long, and see the difference.
long
int
hope this help