{% load i18n %} {% load openinghours_tags %}

django-openinghours

Covered use cases and examples for django-openinghours.

Test is a company is currently open or not.

{% verbatim %}
{% if 'company-ltd'|isCompanyCurrentlyOpen %}
	Yes we're open!
{% else %}
	Sorry we're closed!
{% endif %}
{% endverbatim %} {% if 'company-ltd'|isCompanyCurrentlyOpen %} Yes we're open! {% else %} Sorry we're closed! {% endif %}

List a company's opening hours

{% verbatim %}
{{ 'company-ltd'|companyOpeningHoursList }}
{% endverbatim %} {{ 'company-ltd'|companyOpeningHoursList }}