zoukankan      html  css  js  c++  java
  • date

    var  date  =  new  Date( );

    (1)Date( )

      返回当日的日期和时间

    (2)getDate( )

      返回一月中的某一天(1-31)

    (3)getMonth( )

      返回一年中的某个月(0~11)

    (4)getFullYear( )

      返回四位数字的年份

    (5)getHours( )

      返回小时(0~23)

    (6)getMinutes( )

      返回分钟(0~59)

    (7)getSeconds( )

      返回秒数(0~59)

    (8)getMilliseconds( )

      返回毫秒数(0~999)

    (9)getTime( )

      返回1970年1月1日至今的毫秒数,时间戳

    (10)setDate( )

      设置一月中的某一天(1-31)

    (11)setMonth( )

      设置一年中的某个月(0~11)

    (12)setFullYear( )

      设置四位数字的年份

    (13)setHours( )

      设置小时(0~23)

    (14)setMinutes( )

      设置分钟(0~59)

    (15)setSeconds( )

      设置秒数(0~59)

    (16)setMilliseconds( )

      设置毫秒数(0~999)

    (17)setTime( )

      设置1970年1月1日至今的毫秒数,时间戳

  • 相关阅读:
    团队开发16
    小工具集合Alpha版使用说明
    团队开发15
    《编写有效用例》读后感3
    《编写有效用例》读后感2
    《编写有效用例》读后感1
    《架构漫谈》读后感3
    《架构漫谈》读后感2
    《架构漫谈》读后感1
    SOA设计与应用
  • 原文地址:https://www.cnblogs.com/cuishuangshuang/p/13285952.html
Copyright © 2011-2022 走看看