0

我希望能够在 Actionscript 3 中找出现在的时间/日期是否在星期一上午 10 点到下午 5 点之间。

这可能吗?

4

1 回答 1

1

查看Date类,我相信这有很多变体:

var now:Date = new Date();

if (now.day == 1 && now.hours >= 10 && now.hours <= 17)
{
    // it's a monday and you're probably at work (between 10am - 5pm)
}
于 2012-05-09T05:50:43.147 回答