コンテンツにスキップ

NetworkTimestamp

NetworkTimestamp ⚓︎

symbolchain.NetworkTimestamp.NetworkTimestamp

Represents a network timestamp.

is_epochal property ⚓︎

symbolchain.NetworkTimestamp.NetworkTimestamp.is_epochal

Determines if this is the epochal timestamp.

__init__(timestamp) ⚓︎

add_hours(count) ⚓︎

symbolchain.NetworkTimestamp.NetworkTimestamp.add_hours

Adds a specified number of hours to this timestamp.

add_minutes(count) ⚓︎

symbolchain.NetworkTimestamp.NetworkTimestamp.add_minutes

Adds a specified number of minutes to this timestamp.

add_seconds(count) abstractmethod ⚓︎

symbolchain.NetworkTimestamp.NetworkTimestamp.add_seconds

Adds a specified number of seconds to this timestamp.

NetworkTimestampDatetimeConverter ⚓︎

symbolchain.NetworkTimestamp.NetworkTimestampDatetimeConverter

Provides utilities for converting between network timestamps and datetimes.

__init__(epoch, time_units) ⚓︎

symbolchain.NetworkTimestamp.NetworkTimestampDatetimeConverter.__init__

Creates a converter given an epoch and base time units.

to_datetime(raw_timestamp) ⚓︎

to_difference(reference_datetime) ⚓︎

symbolchain.NetworkTimestamp.NetworkTimestampDatetimeConverter.to_difference

Subtracts the network epoch from the reference date.