Registry / networking / cumulus-primitives-timestamp

cumulus-primitives-timestamp

JSON →
library0.26.0rscratesunverified

Provides timestamp related functionality for parachains.

# Cargo.toml [dependencies] cumulus-primitives-timestamp = "0.26.0"
INSTALL
IMPORT
SIG · CUMULUS-PRIMITIVES
C
cumulus-primitives-timestamp
networkingrustv0.26.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Timestamp
use cumulus_primitives_timestamp::Timestamp;

Creates a parachain timestamp from a Unix epoch value.

use cumulus_primitives_timestamp::Timestamp; let ts = Timestamp::new(1234567890); println!("Timestamp: {:?}", ts);
Debug
Known issues
gotchaPart of the Polkadot SDK; requires Substrate framework.
fix
Add polkadot-sdk dependencies and configure a parachain runtime.
affects: >=0.26.0
Upgrade
Version history
0.26.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
cumulus-primitives-timestamp — cargo add cumulus-primitives-timestamp · libregistry