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년 전
음..좋네요..~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3730 | 14년 전 | 943 | ||
| 3729 | 14년 전 | 762 | ||
| 3728 | 14년 전 | 755 | ||
| 3727 | 14년 전 | 743 | ||
| 3726 | 14년 전 | 1156 | ||
| 3725 | 14년 전 | 861 | ||
| 3724 | 14년 전 | 860 | ||
| 3723 |
올인할거야
|
14년 전 | 879 | |
| 3722 |
berry
|
14년 전 | 684 | |
| 3721 |
Darby
|
14년 전 | 1744 | |
| 3720 | 14년 전 | 1517 | ||
| 3719 | 14년 전 | 947 | ||
| 3718 |
gangjin
|
14년 전 | 764 | |
| 3717 |
플레이디원
|
14년 전 | 1836 | |
| 3716 | 14년 전 | 1207 | ||
| 3715 |
berry
|
14년 전 | 1046 | |
| 3714 | 14년 전 | 808 | ||
| 3713 |
|
14년 전 | 1507 | |
| 3712 | 14년 전 | 3767 | ||
| 3711 | 14년 전 | 2426 | ||
| 3710 |
SGFlash
|
14년 전 | 1120 | |
| 3709 |
프로프리랜서
|
14년 전 | 725 | |
| 3708 |
kavri
|
14년 전 | 779 | |
| 3707 | 14년 전 | 1302 | ||
| 3706 | 14년 전 | 970 | ||
| 3705 | 14년 전 | 1348 | ||
| 3704 | 14년 전 | 1395 | ||
| 3703 | 14년 전 | 1420 | ||
| 3702 |
방황하는중년
|
14년 전 | 638 | |
| 3701 | 14년 전 | 869 | ||
| 3700 | 14년 전 | 2745 | ||
| 3699 | 14년 전 | 765 | ||
| 3698 | 14년 전 | 1227 | ||
| 3697 | 14년 전 | 814 | ||
| 3696 |
|
14년 전 | 696 | |
| 3695 | 14년 전 | 1233 | ||
| 3694 | 14년 전 | 657 | ||
| 3693 |
|
14년 전 | 1340 | |
| 3692 |
아갈갤러리
|
14년 전 | 925 | |
| 3691 | 14년 전 | 1585 | ||
| 3690 | 14년 전 | 1531 | ||
| 3689 | 14년 전 | 1029 | ||
| 3688 | 14년 전 | 1258 | ||
| 3687 | 14년 전 | 943 | ||
| 3686 | 14년 전 | 1648 | ||
| 3685 | 14년 전 | 1225 | ||
| 3684 |
방황하는중년
|
14년 전 | 1230 | |
| 3683 |
휴전합시다
|
14년 전 | 1509 | |
| 3682 | 14년 전 | 1409 | ||
| 3681 | 14년 전 | 835 | ||
| 3680 | 14년 전 | 900 | ||
| 3679 | 14년 전 | 667 | ||
| 3678 | 14년 전 | 843 | ||
| 3677 |
|
14년 전 | 1588 | |
| 3676 |
|
14년 전 | 2342 | |
| 3675 | 14년 전 | 2237 | ||
| 3674 | 14년 전 | 1875 | ||
| 3673 |
|
14년 전 | 1430 | |
| 3672 | 14년 전 | 1497 | ||
| 3671 | 14년 전 | 1271 | ||
| 3670 |
아놔6636
|
14년 전 | 1532 | |
| 3669 | 14년 전 | 657 | ||
| 3668 |
아놔6636
|
14년 전 | 1280 | |
| 3667 | 14년 전 | 642 | ||
| 3666 | 14년 전 | 1084 | ||
| 3665 | 14년 전 | 859 | ||
| 3664 | 14년 전 | 1968 | ||
| 3663 | 14년 전 | 735 | ||
| 3662 | 14년 전 | 2556 | ||
| 3661 | 14년 전 | 977 | ||
| 3660 | 14년 전 | 819 | ||
| 3659 | 14년 전 | 2926 | ||
| 3658 | 14년 전 | 701 | ||
| 3657 | 14년 전 | 953 | ||
| 3656 | 14년 전 | 496 | ||
| 3655 | 14년 전 | 824 | ||
| 3654 |
쉽다zzz
|
14년 전 | 601 | |
| 3653 | 14년 전 | 1289 | ||
| 3652 | 14년 전 | 730 | ||
| 3651 | 14년 전 | 1096 | ||
| 3650 | 14년 전 | 717 | ||
| 3649 | 14년 전 | 654 | ||
| 3648 | 14년 전 | 639 | ||
| 3647 | 14년 전 | 1345 | ||
| 3646 |
|
14년 전 | 801 | |
| 3645 | 14년 전 | 684 | ||
| 3644 | 14년 전 | 704 | ||
| 3643 | 14년 전 | 1378 | ||
| 3642 |
|
14년 전 | 1381 | |
| 3641 |
|
14년 전 | 579 | |
| 3640 | 14년 전 | 2466 | ||
| 3639 | 14년 전 | 471 | ||
| 3638 |
방황하는중년
|
14년 전 | 746 | |
| 3637 | 14년 전 | 3225 | ||
| 3636 | 14년 전 | 670 | ||
| 3635 | 14년 전 | 1096 | ||
| 3634 | 14년 전 | 1447 | ||
| 3633 |
|
14년 전 | 579 | |
| 3632 | 14년 전 | 765 | ||
| 3631 | 14년 전 | 820 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기