Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够在 Actionscript 3 中找出现在的时间/日期是否在星期一上午 10 点到下午 5 点之间。
这可能吗?
查看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) }