Created
July 8, 2015 16:30
-
-
Save bobdenotter/9d795397238394396ed5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% setcontent records = "entries/latest/6" allowpaging %} | |
{% for record in records %} | |
<h4>{{ record.title}} - {{ record.datepublish|date('Y-m-d') }} </h4> | |
datepublish: {{ record.datepublish|date("U") }}<br> | |
minus six months from now: {{ "-6 months"|date("U") }}<br> | |
{% if record.datepublish|date("U") < "-6 months"|date("U") %} | |
More than six months old. | |
{% else %} | |
Less than six months old. | |
{% endif %} | |
<hr> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sed haec omittamus; - 2015-03-10
datepublish: 1425953676
minus six months from now: 1404836978
Less than six months old.
Tum mihi Piso: Quid ergo? - 2015-03-07
datepublish: 1425728452
minus six months from now: 1404836978
Less than six months old.
Istic sum, inquit. - 2015-01-06
datepublish: 1420554195
minus six months from now: 1404836978
Less than six months old.
Verum hoc idem saepe faciamus. - 2014-12-28
datepublish: 1419807536
minus six months from now: 1404836978
Less than six months old.
Stoicos roga. - 2014-11-18
datepublish: 1416304118
minus six months from now: 1404836978
Less than six months old.
At certe gravius. - 2014-11-16
datepublish: 1416167294
minus six months from now: 1404836978
Less than six months old.