Timeο
Processor that converts representations of time units to python time objects.
Classes:
|
Map of time character representation to it unit conversion from seconds |
- class musify.processors.time.TimeMapper(func)ο
Bases:
DynamicProcessor
,PrettyPrinter
Map of time character representation to it unit conversion from seconds
Methods:
map
(value)Run the mapping function
seconds
(**kwargs)Call self as a function.
minutes
(**kwargs)Call self as a function.
hours
(**kwargs)Call self as a function.
days
(**kwargs)Call self as a function.
weeks
(**kwargs)Call self as a function.
months
(**kwargs)Call self as a function.
as_dict
()Return a dictionary representation of the key attributes of this object.
- map(value)ο
Run the mapping function
- seconds(**kwargs)ο
Call self as a function.
- Return type:
Any
- minutes(**kwargs)ο
Call self as a function.
- Return type:
Any
- hours(**kwargs)ο
Call self as a function.
- Return type:
Any
- days(**kwargs)ο
Call self as a function.
- Return type:
Any
- weeks(**kwargs)ο
Call self as a function.
- Return type:
Any
- months(**kwargs)ο
Call self as a function.
- Return type:
Any
- as_dict()ο
Return a dictionary representation of the key attributes of this object.
- Return type:
dict
[str
,Any
]
- The results of this function are used to produce the following:
A JSON representation of the object when calling
json()
The string representation of the object when calling str() on the object
The representation of the object when calling repr() on the object