layout | title |
---|---|
base/bar/bar-sidebar-none |
Calendar |
{% comment %} Starting from the first date of instruction, find Sunday {% endcomment %} {% assign startdateseconds = site.data.calendar.dates_of_instruction.start | append: 'Z' | date: '%s' %} {% assign startdate = startdateseconds | date: '%F' %}
{% comment %} Starting from the last date of instruction, find Saturday {% endcomment %} {% assign enddateseconds = site.data.calendar.dates_of_instruction.end | append: 'Z' | date: '%s' %} {% assign enddate = enddateseconds | date: '%F' %}
{% comment %} How many days are in our calendar, adding 3600s in case of DST change {% endcomment %} {% assign numdays = enddateseconds | minus: startdateseconds | plus: 3600 | divided_by: 86400 %}