radloggerpy.models.timestamp module

class radloggerpy.models.timestamp.TimeStamp[source]

Bases: BaseModel

_timestamp = 0
get_timestamp()[source]

Retrieve and return the internal timestamp

Returns:

Epoch, time.time() representation of current time

Return type:

float

set_timestamp(timestamp)[source]

Set the internal timestamp to the passed timestamp in Epoch

Parameters:

timestamp (float) – The timestamp in Epoch such as from time.time()

update_timestamp()[source]

Update the internal timestamp to the current time.time() Epoch