{{ time }}

Represents a specific instant in a specific timezone.


string object_type
Will always be "time".
true/false is_valid
Will always be true.
true/false is_future
Will be true if the instant is in the future and false if the instant is in the past.
integer year
The calendar year.
integer month
The calendar month (1-12)
integer day
The calendar day of the month (1-31)
integer day_of_year
The day of the year (1-366).
string day_of_week
The day of the week (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, or Sunday)
integer hour
The hour of the day (0-23)
integer minute
The minute of the hour (0-59)
integer second
The second of the minute (0-59)
time_diff offset
The utc offset of the timezone at this instant expressed as a time_diff (ranging from -14 to +14 hours)
string timezone
The full timezone identifier
string timezone_short
The shortened timezone identifier, if applicable, for the given timezone at this instant (may vary depending on time of year, and for some timezones may be the same as the full timezone identifier).


{% if calendar_entry.start_date.date.is_future %}
    Event will start on {{calendar_entry.start_date | date: 'g' }}
{% elsif calendar_entry.end_date.date.is_future %}
    Event is currently in progress
{% else %}
    Event completed on {{calendar_entry.end_date | date: 'g' }}
{% endif %}
{% var meridian = 'am' %}
{% var hours = article.post_date.date.hour %}
{% if hours > 12 %}
    {% set hours = hours | minus: 12 %}
    {% set meridian = 'pm' %}
{% endif %}

The year was {{ article.post_date.date.year }}. It had been {{article.post_date.date.day_of_year}} days, or {{ article.post_date.date.month }} months and {{ article.post_date.date.day }} days past the new year. The day was a {{ article.post_date.date.day_of_week }} and the time was {{ hours }}:{{ article.post_date.date.minute }}{{ meridian }}, but that didn't matter.

Developer Overview

Liquid Markup