Ethers.js Получите время
const blockNumber = await ethers.provider.getBlockNumber();
const {timestamp} = await ethers.provider.getBlock(blockNumber)
Talented Tapir
const blockNumber = await ethers.provider.getBlockNumber();
const {timestamp} = await ethers.provider.getBlock(blockNumber)