Time difference program

后端 未结 3 1394
梦谈多话
梦谈多话 2021-01-29 16:08

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

3条回答
  •  我在风中等你
    2021-01-29 16:51

    Don't cast long to int, cause it will lose its precision. change all int to long, and see the difference.

    hope this help

提交回复
热议问题