Silverfin

The Silverfin Developer Hub

Welcome to the Silverfin developer hub. You'll find comprehensive guides and documentation to help you start working with Silverfin as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Date and time

There are several filters that can be used to interact with times and dates. This is a list of them:

Advance filter

Retract filter

advance_years

retract_years

advance_months

retract_months

advance_weeks

retract_weeks

advance_days

retract_days

advance_hours

retract_hours

advance_minutes

retract_minutes

advance_seconds

retract_seconds

For example:

{% assign prev_date = '01/06/2019' | as:date  %}
{% assign new_date = prev_date | advance_months:3 | advance_years:1  %}

Original Date: {{ prev_date | date:"%d/%m/%Y" }}
New Date: {{ new_date | date:"%d/%m/%Y" }}
Output
Original Date: 01/06/2019
New Date: 01/09/2020

Another example:

{% assign hour = '10/06/2019 15:45:00' | as:date %}
{% assign new_hour = hour | retract_hours:5 | advance_minutes:25 %}

Original Hour: {{ hour | date:'%H:%M' }}
New Hour: {{ new_hour | date:'%H:%M' }}
Output
Original Hour: 15:45
New Hour: 11:10

Updated 4 months ago

Date and time


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.