new Date
类型:对象方法
适用环境:Flash 5 或更新版本
语法:new Date()
new Date(year, month, date, hour, minute, second, millisecond)
参数:year:0 至 99 之间的整数,对应于 1900 至 1999 年。也可以是 4 位数字的准确年数。(可选)
month:0(表示 1 月份) 至 11(表示 12 月份) 的整数。(可选)
date:1 至 31 的整数,日参数。(可选)
hour:0 至 23 的整数,小时参数。(可选)
minute:0 至 59 的整数,分钟参数。(可选)
second:0 至 59 的整数,秒参数。(可选)
millisecond:0 至 999 的整数,毫秒数。(可选)
返回:一个新生成的时间对象
介绍:使用 new Date 语句可以根据参数生成一个新的时间对象。如果不设置参数,则返回浏览者的系统时间。