Skip to main content

time

Format a time according to the given format.

def time(
value: time|datetime|string|null,
arg: string|null
) - > string

Format a time according to the given format.

Parameters

NameTypeDescription
value`timedatetime
arg`stringnull`

Returns

TypeDescription
stringThe formatted time string, or an empty string if the input is invalid or null.