pub fn block_timestamp() -> u64
Current block timestamp, i.e, number of non-leap-nanoseconds since January 1, 1970 0:00:00 UTC.
use near_sdk::env::block_timestamp; assert_eq!(block_timestamp(), 0);