Registry / utility / ckb-systemtime

ckb-systemtime

JSON →
library1.1.0rscratesunverified

Provides real system timestamps and faketime support when the `enable_faketime` feature is enabled.

# Cargo.toml [dependencies] ckb-systemtime = "1.1.0"
INSTALL
IMPORT
SIG · CKB-SYSTEMTIME
C
ckb-systemtime
utilityrustv1.1.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.

unix_time
use ckb_systemtime::unix_time;

Gets the current unix timestamp.

use ckb_systemtime::unix_time; fn main() { let now = unix_time(); println!("Current unix time: {}", now); }
Debug
Known issues
gotchaFaketime requires the `enable_faketime` feature flag to be enabled.
fix
Add `enable_faketime` to your Cargo.toml features for `ckb-systemtime`.
affects: >=1.0.0
Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
ckb-systemtime — cargo add ckb-systemtime · libregistry