Login
·
Signup
Home
»
XtGem
»
Questions about service
»
graham, help twig
» View post
tiaxgame
Graham
Countdown of my
time languishing
occasionally, do not
fix it. 'guestbook'
{% set s=comment.date|slice(17,2) %} {% set m=comment.date|slice(14,2) %} {% set h=comment.date|slice(11,2) %} {% set d=comment.date|slice(8,2) %} {% set day=comment.date|slice(8,2) %} {% set mo=comment.date|slice(5,2) %} {% set y=comment.date|slice(0,4) %} {% set time1=comment.date|slice(11,8) %} {% set nowm="now"|date("s", "Asia/Ho_Chi_Minh") %} {% if s <= "now"|date("s", "Asia/Ho_Chi_Minh") %} {% set s="now"|date("s", "Asia/Ho_Chi_Minh")-s %} {% else %} {% set s,m="now"|date("s", "Asia/Ho_Chi_Minh")+60-s,m+1 %}{%endif%} {% if m <= "now"|date("i", "Asia/Ho_Chi_Minh") %} {% set m="now"|date("i", "Asia/Ho_Chi_Minh")-m %} {% else %} {% set m,h="now"|date("i", "Asia/Ho_Chi_Minh")+60-m,h+1 %}{%endif%} {% if h <= "now"|date("H", "Asia/Ho_Chi_Minh") %} {% set h="now"|date("H", "Asia/Ho_Chi_Minh")-h %} {% else %} {% set h,d="now"|date("H", "Asia/Ho_Chi_Minh")+24-h,d+1 %}{%endif%} {% if d <= "now"|date("d", "Asia/Ho_Chi_Minh") %} {% set d="now"|date("d", "Asia/Ho_Chi_Minh")-d+1 %} {% else %} {% set d,mo="now"|date("d", "Asia/Ho_Chi_Minh")+31-d,1 %}{%endif%} {% if mo < nowm %} {% if day=="now"|date("d", "Asia/Ho_Chi_Minh") %} {% if h > 0%}{% set time %}{{ h}} giờ,<br /> {{m~" phút" }} trước{% endset %}{%elseif h==0 and m > 0%}{% set time %}{{m}} phút,<br/> {{s}} giây trước{% endset %}{%else%}{% set time %}Vừa xong{% endset %}{%endif%} {%elseif d<=1 %}{% set time %}Hôm qua,<br />- Lúc {{time1}} {% endset %}{%elseif d > 1 %}{% set time %}{{ d }} ngày trước,<br />- Lúc {{time1}}{% endset %}{% endif %}{%else%}{% set time %}{{comment.date}}{% endset %} {% endif %} {{time|raw}}
#
2014-06-02 13:58 ·
(0)
Home
»
XtGem
»
Questions about service
»
graham, help twig
» View post
Online: Guests: 1
Log in