[#node-UpdateTime] = xref:node.adoc[node]::UpdateTime :relfileprefix: ../ :mrdocs: Update a block header's time field and return the new time. == Synopsis Declared in `<node/miner.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int64_t UpdateTime( xref:CBlockHeader.adoc[CBlockHeader]* pblock, xref:Consensus/Params.adoc[Consensus::Params] const& consensusParams, xref:CBlockIndex.adoc[CBlockIndex] const* pindexPrev); ---- == Return Value The updated block time. == Parameters [cols="1,4"] |=== | Name| Description | *pblock* | The block header to update. | *consensusParams* | Consensus parameters used to bound the time. | *pindexPrev* | The previous block the header builds on. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#