Package org.symbol.sdk.nem
Class NetworkTimestamp
java.lang.Object
org.symbol.sdk.NetworkTimestamp.Base
org.symbol.sdk.nem.NetworkTimestamp
- NetworkTimestamp
Represents a NEM network timestamp with second resolution.
-
Field Summary
Fields inherited from class org.symbol.sdk.NetworkTimestamp.Base
timestamp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSeconds(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 NEM network timestamp.- Parameters:
timestamp- Raw network timestamp.
-
-
Method Details
-
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.
-