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개
14년 전
오... 멋진데요 이건... php로 누가 안만들어주려나요???
14년 전
이걸 왜 php로 만들어요;;
다 있어요.
다 있어요.
14년 전
음..좋네요..~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3430 | 14년 전 | 1975 | ||
| 3429 | 14년 전 | 1398 | ||
| 3428 |
카프카07
|
14년 전 | 1869 | |
| 3427 | 14년 전 | 1502 | ||
| 3426 | 14년 전 | 1326 | ||
| 3425 | 14년 전 | 997 | ||
| 3424 | 14년 전 | 950 | ||
| 3423 | 14년 전 | 1161 | ||
| 3422 | 14년 전 | 1410 | ||
| 3421 | 14년 전 | 5938 | ||
| 3420 | 14년 전 | 1475 | ||
| 3419 | 14년 전 | 1190 | ||
| 3418 | 14년 전 | 1239 | ||
| 3417 | 14년 전 | 809 | ||
| 3416 | 14년 전 | 1002 | ||
| 3415 | 14년 전 | 1611 | ||
| 3414 |
elsarose
|
14년 전 | 1078 | |
| 3413 | 14년 전 | 739 | ||
| 3412 | 14년 전 | 1277 | ||
| 3411 | 14년 전 | 1342 | ||
| 3410 | 14년 전 | 1664 | ||
| 3409 | 14년 전 | 980 | ||
| 3408 | 14년 전 | 4560 | ||
| 3407 | 14년 전 | 1153 | ||
| 3406 | 14년 전 | 1127 | ||
| 3405 | 14년 전 | 1142 | ||
| 3404 | 14년 전 | 1341 | ||
| 3403 | 14년 전 | 1152 | ||
| 3402 |
네비플러스
|
14년 전 | 891 | |
| 3401 | 14년 전 | 963 | ||
| 3400 | 14년 전 | 1403 | ||
| 3399 | 14년 전 | 702 | ||
| 3398 | 14년 전 | 1277 | ||
| 3397 |
아이피마스터
|
14년 전 | 1274 | |
| 3396 | 14년 전 | 1363 | ||
| 3395 |
kimam
|
14년 전 | 4100 | |
| 3394 |
kimam
|
14년 전 | 1338 | |
| 3393 | 14년 전 | 1036 | ||
| 3392 | 14년 전 | 1465 | ||
| 3391 | 14년 전 | 1631 | ||
| 3390 |
|
14년 전 | 832 | |
| 3389 |
sooram
|
14년 전 | 2078 | |
| 3388 | 14년 전 | 2055 | ||
| 3387 | 14년 전 | 1643 | ||
| 3386 |
|
14년 전 | 1600 | |
| 3385 | 14년 전 | 1106 | ||
| 3384 | 14년 전 | 1595 | ||
| 3383 |
보헤미안7
|
14년 전 | 1523 | |
| 3382 | 14년 전 | 1229 | ||
| 3381 |
wldus
|
14년 전 | 965 | |
| 3380 |
wldus
|
14년 전 | 2705 | |
| 3379 | 14년 전 | 2011 | ||
| 3378 |
보헤미안7
|
14년 전 | 1371 | |
| 3377 | 14년 전 | 2031 | ||
| 3376 |
네비플러스
|
14년 전 | 911 | |
| 3375 | 14년 전 | 1016 | ||
| 3374 | 14년 전 | 1633 | ||
| 3373 | 14년 전 | 1736 | ||
| 3372 | 14년 전 | 1340 | ||
| 3371 |
호박둥구리
|
14년 전 | 1029 | |
| 3370 | 14년 전 | 1191 | ||
| 3369 |
열라바보숑
|
14년 전 | 1121 | |
| 3368 | 14년 전 | 1977 | ||
| 3367 | 14년 전 | 2105 | ||
| 3366 | 14년 전 | 1977 | ||
| 3365 | 14년 전 | 1110 | ||
| 3364 | 14년 전 | 1683 | ||
| 3363 | 14년 전 | 1739 | ||
| 3362 | 14년 전 | 1843 | ||
| 3361 |
|
14년 전 | 3608 | |
| 3360 |
호피무늬쫄티
|
14년 전 | 1159 | |
| 3359 |
|
14년 전 | 1958 | |
| 3358 |
DreamT
|
14년 전 | 881 | |
| 3357 | 14년 전 | 1014 | ||
| 3356 | 14년 전 | 857 | ||
| 3355 | 14년 전 | 1319 | ||
| 3354 |
sooram
|
14년 전 | 1772 | |
| 3353 | 14년 전 | 1305 | ||
| 3352 | 14년 전 | 1160 | ||
| 3351 | 14년 전 | 815 | ||
| 3350 | 14년 전 | 1802 | ||
| 3349 | 14년 전 | 1370 | ||
| 3348 | 14년 전 | 925 | ||
| 3347 | 14년 전 | 2310 | ||
| 3346 | 14년 전 | 1428 | ||
| 3345 | 14년 전 | 1351 | ||
| 3344 | 14년 전 | 885 | ||
| 3343 |
visualp
|
14년 전 | 1751 | |
| 3342 |
abetterday
|
14년 전 | 2719 | |
| 3341 |
|
14년 전 | 1219 | |
| 3340 |
|
14년 전 | 608 | |
| 3339 | 14년 전 | 2176 | ||
| 3338 |
|
14년 전 | 1937 | |
| 3337 | 14년 전 | 883 | ||
| 3336 | 14년 전 | 1470 | ||
| 3335 | 14년 전 | 1650 | ||
| 3334 | 14년 전 | 1505 | ||
| 3333 | 14년 전 | 872 | ||
| 3332 |
sooram
|
14년 전 | 833 | |
| 3331 | 14년 전 | 1138 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기