Mellow Apricot

기존 티스토리 측에서 지원하던 날짜 치환자는 [★##_article_rep_date_##] 이 치환자 하나 뿐이었지만, 연도, 월, 일, 시 ,분, 초까지 하나씩 나타내는 새로운 치환자가 생겼다.

 

 

1 : 글에서 보여지는 날짜

https://tistory.github.io/document-tistory-skin/list/list.html

 [★##_article_rep_date_##]  글 발행 날짜/시간 (yyyy.mm.dd HH:MM)
 [★##_article_rep_simple_date_##]  글 발행 날짜 (yyyy.mm.dd)
 [★##_article_rep_date_year_##]  글쓴 세부시간 - 연도 (yyyy)
 [★##_article_rep_date_month_##]  글쓴 세부시간 - 월 (mm)
 [★##_article_rep_date_day_##]  글쓴 세부시간 - 일 (dd)
 [★##_article_rep_date_hour_##]  글쓴 세부시간 - 시 (HH)
 [★##_article_rep_date_minute_##]  글쓴 세부시간 - 분 (MM)
 [★##_article_rep_date_second_##]  글쓴 세부시간 - 초 (SS)

 

아래처럼 출력 방식을 변경할 수 있다.

 

(1) 기존 치환자

<div class="date">[★##_article_rep_date_##]</div> 

= 2019.06.29 12:00

 

(2) 새로운 치환자를 이용한 배열

<div class="date">[★##_article_rep_date_month_##]/[★##_article_rep_date_day_##]</div>

=06/29

 

(3) 새로운 치환자를 이용한 배열 

<div class="date">[★##_article_rep_date_month_##]월 [★##_article_rep_date_day_##]일 [★##_article_rep_date_hour_##][★##_article_rep_date_minute_##]분</div>

=06월29일 12시00분

 

다만 연도가 기본 yyyy형태(2019)라서 4자리 형식으로 출력된다. yy형태(19)로 출력하려면 또 스크립트를 써야 함..ㅎㅎ 또 월을 영어나 한글 등으로 표시하려면 역시 스크립트를 써야 함..

 

 

 

2 : 리스트에서 보여지는 발행 날짜

https://tistory.github.io/document-tistory-skin/list/list.html

 [★##_list_rep_date_##]  글 발행 날짜/시간 (yyyy.mm.dd HH:MM)
 [★##_list_rep_simple_date_##]  글 발행 날짜 (yyyy.mm.dd)
 [★##_list_rep_date_year_##]  글쓴 세부시간 - 연도 (yyyy)
 [★##_list_rep_date_month_##]  글쓴 세부시간 - 월 (mm)
 [★##_list_rep_date_day_##]  글쓴 세부시간 - 일 (dd)
 [★##_list_rep_date_hour_##]  글쓴 세부시간 - 시 (HH)
 [★##_list_rep_date_minute_##]  글쓴 세부시간 - 분 (MM)
 [★##_list_rep_date_second_##]  글쓴 세부시간 - 초 (SS)

 

방식은 위와 동일

 

 

3 : 공지사항에서 보여지는 발행 날짜

https://tistory.github.io/document-tistory-skin/contents/notice.html

 [★##_notice_rep_date_##]  글 발행 날짜/시간 (yyyy.mm.dd HH:MM)
 [★##_notice_rep_simple_date_##]  글 발행 날짜 (yyyy.mm.dd)
 [★##_notice_rep_date_year_##]  글쓴 세부시간 - 연도 (yyyy)
 [★##_notice_rep_date_month_##]  글쓴 세부시간 - 월 (mm)
 [★##_notice_rep_date_day_##]  글쓴 세부시간 - 일 (dd)
 [★##_notice_rep_date_hour_##]  글쓴 세부시간 - 시 (HH)
 [★##_notice_rep_date_minute_##]  글쓴 세부시간 - 분 (MM)
 [★##_notice_rep_date_second_##]  글쓴 세부시간 - 초 (SS)

 

방식은 위와 동일

 

 

아직 댓글과 방명록에서는 지원하지 않고 요일 표시도 지원하지 않는다.

Guestbook.