Skip to main content

time_format

Convenience function

def time_format(
value: any,
format_string: string
) - > string

Convenience function

Parameters

NameTypeDescription
valueanyThe input time value to be formatted, typically a datetime object or timestamp
format_stringstringThe template string defining the desired output structure for the time value

Returns

TypeDescription
stringThe formatted time string based on the provided format pattern