Yet another Flash Q
Yet another Flash Q
Out of context: Reply #1
- Started
- Last post
- 5 Responses
- UndoUndo0
var now_date:Date = new Date();
var currentHour = now_date.Hours()
if (currentHour22){
//do this
} else{
// do this}
checks to see if the time is between 10 at night and 1 in the morning against the users own clock.
you can use UTC time but you have to workout the timezone offset which uses the users computer time to calcualte it. so if the users clock is wrong yr fuckered :)