class Marten::Template::Filter::Time

Overview

The "time" filter.

The "time" filter allows to output the string representation of a time variable. It requires the specification of a filter argument, which is the format string used to format the time (whose available directives are part of Time::Format).

Defined in:

marten/template/filter/time.cr

Instance Method Summary

Instance methods inherited from class Marten::Template::Filter::Base

apply(value : Value, arg : Value | Nil = nil) : Value apply

Instance Method Detail

def apply(value : Value, arg : Value | Nil = nil) : Value #

[View source]