ActionScript 3.0 + Calculate timespan between two dates?

后端 未结 7 1692
礼貌的吻别
礼貌的吻别 2020-12-01 10:00

In ActionScript 3.0, is there an automatic way to calculate the number of days, hours, minutes and seconds between two specified dates?

Basicly, what I need is the A

相关标签:
7条回答
  • 2020-12-01 10:36

    There is no automatic way of doing this. The best you can achieve with the supplied classes is to fetch date1.time and date2.time, to give the number of milliseconds since 1st Jan 1970 for two numbers. You can then work out the number of milliseconds between them. With some basic maths, you can then derive the seconds, hours, days etc.

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