package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var dSometime:Date = new Date(2020, 0, 1); dSometime.setHours(5); dSometime.setMinutes(30); dSometime.setSeconds(5); dSometime.setMilliseconds(900); trace(dSometime.toString()); dSometime.setMilliseconds(1000); dSometime.setSeconds(5); // Set the seconds value back to 5 dSometime.setMilliseconds(-1); // 05:30:04:999 } }}
Name (required)
email (will not be published) (required)
Website