mooflow.utils.make_shape_two

mooflow.utils.make_shape_two(item, date=None, length=2, filler='0')

returns a string with a given length. padding with 0. – if item is a datetime-object, then date must be given. – if item is a int or str, then date is None

Parameters
itemdatetime-object or str / int

the str to be padded

datestring

unit (month, year, day, minute, second)

lengthint

length of output string