How do I convert ticks to minutes?

后端 未结 7 1552
情书的邮戳
情书的邮戳 2020-12-24 04:25

I have a ticks value of 28000000000 which should be 480 minutes but how can I be sure? How do I convert a ticks value to minutes?

相关标签:
7条回答
  • 2020-12-24 05:08
    DateTime mydate = new Date(2012,3,2,5,2,0);
    int minute = mydate/600000000;
    

    will return minutes of from given date (mydate) to current time.hope this help.cheers

    0 讨论(0)
提交回复
热议问题