"realtime".ver1.0 구문 (Placeholder)
페이지 정보
작성자 셀론 작성일20-01-09 02:06 조회673회 댓글1건첨부파일
-
realtime.zip (3.5K) 0회 다운로드 DATE : 2020-01-09 02:06:30
관련링크
본문
실제 (윈도우) 시간을 구하는 구문입니다.
※ "realtimeyear" 구문 ※
○ Placeholder ○
* js *
□ function realtimeyear(args)
□ {
□□ return new Date().getFullYear();
□ }
※ "realtimemonth" 구문 ※
○ Placeholder ○
* js *
□ function realtimemonth(args)
□ {
□□ return new Date().getMonth() + 1;
□ }
※ "realtimedate" 구문 ※
○ Placeholder ○
* js *
□ function realtimedate(args)
□ {
□□ return new Date().getDate();
□ }
※ "realtimehour" 구문 ※
○ Placeholder ○
* js *
□ function realtimehour(args)
□ {
□□ return new Date().getHours();
□ }
※ "realtimeminute" 구문 ※
○ Placeholder ○
* js *
□ function realtimeminute(args)
□ {
□□ return new Date().getMinutes();
□ }
※ "realtimesecond" 구문 ※
○ Placeholder ○
* js *
□ function realtimesecond(args)
□ {
□□ return new Date().getSeconds();
□ }
※ 생각 ※
실제 시간을 불러오는 Placeholder가 currenttimeseconds 밖에 없어서
많은 불편함이 있어 직접 Placeholder를 제작하였습니다.
각 Placeholder는 다음과 같은 정보를 불러옵니다.
realtimeyear - 년
realtimemonth - 월
realtimedate - 일
realtimehour - 시
realtimeminute - 분
realtimesecond - 초
※ "realtimeyear" 구문 ※
○ Placeholder ○
* js *
□ function realtimeyear(args)
□ {
□□ return new Date().getFullYear();
□ }
※ "realtimemonth" 구문 ※
○ Placeholder ○
* js *
□ function realtimemonth(args)
□ {
□□ return new Date().getMonth() + 1;
□ }
※ "realtimedate" 구문 ※
○ Placeholder ○
* js *
□ function realtimedate(args)
□ {
□□ return new Date().getDate();
□ }
※ "realtimehour" 구문 ※
○ Placeholder ○
* js *
□ function realtimehour(args)
□ {
□□ return new Date().getHours();
□ }
※ "realtimeminute" 구문 ※
○ Placeholder ○
* js *
□ function realtimeminute(args)
□ {
□□ return new Date().getMinutes();
□ }
※ "realtimesecond" 구문 ※
○ Placeholder ○
* js *
□ function realtimesecond(args)
□ {
□□ return new Date().getSeconds();
□ }
※ 생각 ※
실제 시간을 불러오는 Placeholder가 currenttimeseconds 밖에 없어서
많은 불편함이 있어 직접 Placeholder를 제작하였습니다.
각 Placeholder는 다음과 같은 정보를 불러옵니다.
realtimeyear - 년
realtimemonth - 월
realtimedate - 일
realtimehour - 시
realtimeminute - 분
realtimesecond - 초
댓글목록
글 좋아요 기능 추가를 생각해 봐야겠네요
항상 글 올려주셔서 감사합니다.