라

Javascript 날짜관련 함수 종결자 - date.js

http://code.google.com/p/datejs/

Syntax Overview

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.

Date.today().is().weekday()     // Is today a weekday?

Date.today().addDays(1)         // Add one day (+1).
Date.today().addMonths(-3)      // Subtract three months (-3).

Date.today().add(1).day()       // Add one (+1) day. Supports all date parts (year, month, day, hour, minute, second, millisecond, and weeks)
Date.today().add(-3).months()   // Subtract three (-3) months.

(1).day().fromNow()             // One (1) day from now.
(3).months().ago()              // Three (3) months ago.

var n = 6;
n
.months().fromNow()            // Six (6) months from now.

Date.monday()                   // Returns Monday of the current week.
Date.mon()                      // Abbreviated version of Date.monday()

Date.march()                    // Returns March 1st of this year.
Date.mar()                      // Abbreviated version of Date.march()

Date.today().first().thursday() // Returns the first Thursday of the current month.
Date.today().second().thursday()// Returns the second Thursday of the current month.

Date.march().third().thursday() // Returns the third Thursday in March of the current year.
Date.october().fourth().sunday()// Returns the fourth Sunday in October.

Date.today().fifth().sunday()   // Returns the fifth Sunday in the current month, or throws a RangeError exception if there are not 5 Sundays in the current month.
Date.october().final().sunday() // Returns the final Sunday in October.

Date.january().first().monday() // Returns the first Monday of the current year.
Date.december().final().friday()// Returns the last Friday of the current year.

Date.today().at("6:15pm");      // Returns todays date at 6:15pm.

var time = {hour:18, minute:15};
Date.today().at(time);          // Set time with a config object.

var birthDayParty = {month: 1, day: 20, hour: 20, minute: 30};
Date.today().set(birthDayParty);// Set date and time with a config object.
|

댓글 3개

오... 멋진데요 이건... php로 누가 안만들어주려나요???
이걸 왜 php로 만들어요;;
다 있어요.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
12-08-29 조회 4,155
12-08-07 조회 3,813
12-08-03 조회 3,632
12-07-31 조회 3,740
12-07-30 조회 3,689
12-07-16 조회 3,891
12-07-15 조회 3,721
12-07-07 조회 3,578
12-07-06 조회 3,788
12-07-03 조회 3,743
12-06-29 조회 3,356
12-06-22 조회 3,734
12-06-17 조회 3,987
12-05-21 조회 3,909
12-05-02 조회 3,441
12-05-02 조회 4,237
12-05-02 조회 3,360
12-04-30 조회 3,548
12-04-30 조회 3,232
12-03-17 조회 4,096
12-03-10 조회 3,430
12-03-08 조회 3,953
12-03-03 조회 3,668
12-02-27 조회 5,079
12-02-17 조회 4,377
12-02-16 조회 4,653
12-02-03 조회 3,328
12-01-31 조회 3,234
12-01-24 조회 3,229
12-01-17 조회 3,933
12-01-05 조회 3,480
11-12-30 조회 3,210
11-12-23 조회 4,768
11-12-08 조회 3,528
11-12-07 조회 4,496
11-11-27 조회 3,915
11-11-25 조회 4,246
11-11-23 조회 3,697
11-11-22 조회 3,553
11-11-09 조회 3,255
11-10-23 조회 3,192
11-10-19 조회 3,151
11-10-08 조회 2,838
11-10-04 조회 2,836
11-10-04 조회 5,288
11-09-01 조회 4,369
11-08-13 조회 2,552
11-08-06 조회 3,228
11-07-11 조회 3,620
11-06-27 조회 2,990
11-06-21 조회 2,654
11-06-13 조회 2,454
11-06-07 조회 2,467
11-05-26 조회 2,428
11-04-20 조회 2,755
11-03-21 조회 2,856
11-03-18 조회 2,543
11-03-11 조회 2,562
11-02-07 조회 2,392
11-01-18 조회 2,715
11-01-12 조회 2,438
11-01-06 조회 2,530
10-12-10 조회 2,785
10-12-09 조회 2,644
10-12-08 조회 5,071
10-11-29 조회 2,909
10-11-28 조회 2,811
10-11-28 조회 2,652
10-11-19 조회 2,835
10-11-04 조회 2,712
10-10-21 조회 2,441
10-10-19 조회 3,398
10-10-12 조회 2,718
10-10-07 조회 2,550
10-09-30 조회 3,511
10-09-17 조회 3,923
10-09-17 조회 3,871
10-05-31 조회 3,576
09-12-31 조회 3,710
09-07-23 조회 5,035
08-09-16 조회 3,239
08-09-06 조회 2,983
08-09-04 조회 3,406
08-08-16 조회 4,438
08-08-15 조회 3,306
08-08-14 조회 4,518
08-08-12 조회 3,988
08-07-23 조회 2,806
08-07-10 조회 3,756
08-07-04 조회 2,980
08-06-27 조회 7,620
08-06-19 조회 4,927
08-05-27 조회 5,535
08-05-25 조회 5,369
08-05-23 조회 3,443
08-05-23 조회 4,614
08-05-21 조회 4,958
08-05-20 조회 4,081
08-05-20 조회 3,308
08-04-18 조회 4,360