filter_add_hour (zotonic_mod_base v1.0.0-rc.17)

Adds an hour to a date. The value must be of the form {{Y,M,D},{H,I,S}}.

For example:

{{ value|add_hour }}

When the value is {{2008,12,10},{15,30,0}}, the output is {{2008,12,10},{16,30,0}}.

The filter has an optional argument which defines the number of hours to add:

{{ value|add_hour:3 }}

When the value is {{2008,12,10},{15,30,0}}, the output is {{2008,12,10},{18,30,0}}.

See also

sub_hour, add_day, add_week, add_month, add_year

Summary

Functions

add_hour/2

add_hour/3