TokenTimestamp

class mtf.diag_port.sfa.sfa_manager.TokenTimestamp

Timestamp of a token.

This class contains a customized timestamp object of a token. In order to be used easily, when retrieving the object as str, the output is the timestamp value in a readable format (Y-m-d H:M:S). The attribute “value” can be used to get the original hexadecimal value.

__init__(timestamp_bytes)

Create a new instance.

Args:

timestamp_bytes (int): The integral timestamp representation.

Returns:

TokenTimestamp: The newly created instance.

property value

Get the integral timestamp value.

Returns:

int: The integral timestamp value.