RichDate的demo

代码 运行
                    Date.parseBy('2013年09月05日 01:02:17', 'YYYY年MM月DD日 hh:mm:ss').toLocaleString();
                
                    var t = new Date(2013, 6, 9, 8, 7, 6);
                    [t.formatAs('YYYY年MM月DD日 hh:mm'),
                    t.formatAs('YYYY年MM月DD日 hh:mm:ss', true)];
                
                    var t1 = new Date(2013, 8, 6);
                    var t2 = new Date(2016, 8 ,6);
                    [t1.isLeapYear(), t2.isLeapYear()];
                
                    var t = new Date(2013, 8, 6);
                    t.after('2Y2M1200m2400s').before('2Y2M1200m2400s').toLocaleString();