JavaScript日期库 Datejs

fmms 12年前
     <div id="p_fullcontent" class="detail">     <p>Datejs 是一个开源的JavaScript库,用来解析、格式化和处理日期数据,支持多种语言的日期格式处理。</p>     <p>示例代码:</p>     <pre class="brush:javascript; toolbar: true; auto-links: false;">Date.today()                    // Returns today's date, with time set to 00:00 (start of day).  Date.today().next().friday()    // Returns the date of the next Friday. Date.today().last().monday()    // Returns the date of the previous Monday.  new Date().next().march()       // Returns the date of the next March. new Date().last().week()        // Returns the date one week ago.   Date.today().is().friday()      // Returns true|false if the day-of-week matches. Date.today().is().fri()         // Abbreviated day names.   Date.today().is().november()    // Month names. Date.today().is().nov()         // Abbreviated month names.</pre>     <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1323613164733" target="_blank">http://www.open-open.com/lib/view/home/1323613164733</a></p>    </div>