setmocktime (hidden command)

Bitcoin Core 25.0 RPC

setmocktime timestamp

Set the local time to given timestamp (-regtest only)

Arguments

1. timestamp    (numeric, required) UNIX epoch time
                Pass 0 to go back to using the system time.

Result

null    (json null)