user5152: Is there a command to get the DateTime of when bitcoind last received a block?

user24722: No, there isn't.
getblockcount can only get the number of blocks in the best chain, but not the last received block.
You might need to write a new rpc to get the last received block. 
First, add a new data structure in main.cpp and record blocks received order in ProcessBlock().
Second, write a rpc to print out that data structure.

user29310: I think people look at the bitcoind log files to see the received times.  Possibly a grep on the log file might be what you need?

user18196: What you probably want to do is set up a -blocknotify= script when you start your daemon. For example, you could echo the block hash with the %s formatter, and echo the time it was received, directing the output to a file:
./bitcoind -daemon -server -blocknotify="echo %s; date"


5152: <p>Is there a command to get the <code>DateTime</code> of when <code>bitcoind</code> last received a block?</p>
 24722: <p>No, there isn't.
<code>getblockcount</code> can only get the number of blocks in the best chain, but not the last received block.</p>

<p>You might need to write a new rpc to get the last received block. </p>

<p>First, add a new data structure in main.cpp and record blocks received order in <code>ProcessBlock()</code>.</p>

<p>Second, write a rpc to print out that data structure.</p>
 29310: <p>I think people look at the bitcoind log files to see the received times.  Possibly a grep on the log file might be what you need?</p>
 18196: <p>What you probably want to do is set up a <code>-blocknotify=</code> script when you start your daemon. For example, you could echo the block hash with the <code>%s</code> formatter, and echo the time it was received, directing the output to a file:</p>

<pre><code>./bitcoind -daemon -server -blocknotify="echo %s; date"
</code></pre>
