Package org.symbol.sdk.symbol
Class NetworkTimestamp
java.lang.Object
org.symbol.sdk.NetworkTimestamp.Base
org.symbol.sdk.symbol.NetworkTimestamp
- NetworkTimestamp
- Represents a Symbol network timestamp with millisecond resolution.
-
Field Summary
Fields inherited from class org.symbol.sdk.NetworkTimestamp.Base
timestamp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMilliseconds(long count) Adds a specified number of milliseconds to this timestamp.addSeconds(long count) Adds a specified number of seconds to this timestamp.Methods inherited from class org.symbol.sdk.NetworkTimestamp.Base
addHours, addMinutes, equals, hashCode, isEpochal, toString
-
Constructor Details
-
NetworkTimestamp
public NetworkTimestamp(long timestamp) Creates a Symbol network timestamp.- Parameters:
timestamp- Raw network timestamp.
-
-
Method Details
-
addMilliseconds
- NetworkTimestamp.addMilliseconds
- Adds a specified number of milliseconds to this timestamp.
- Parameters:
count- Number of milliseconds to add.- Returns:
- New timestamp that is the specified number of milliseconds past this timestamp.
-
addSeconds
- NetworkTimestamp.addSeconds
- Description copied from class:
NetworkTimestamp.Base
Adds a specified number of seconds to this timestamp.- Specified by:
addSecondsin classNetworkTimestamp.Base- Parameters:
count- Number of seconds to add.- Returns:
- New timestamp that is the specified number of seconds past this timestamp.
-