Smart Contract
Clock
A.a45ead1cf1ca9eda.Clock
1/// This contract is copied from https://github.com/findonflow/find/blob/main/contracts/Clock.cdc
2/// Thank you to the good folks at findonflow for sharing this helpful utility contract.
3///
4/// Versions on test networks expose the ability to mock time, but on mainnet, this contract simply returns the current
5/// block timestamp.
6///
7access(all) contract Clock {
8 /// Gets the current time
9 ///
10 access(all) view fun time() : UFix64 {
11 return getCurrentBlock().timestamp
12 }
13}
14