[#CBlockIndex-GetMedianTimePast] = xref:CBlockIndex.adoc[CBlockIndex]::GetMedianTimePast :relfileprefix: ../ :mrdocs: Returns the median timestamp of the previous nMedianTimeSpan blocks. == Synopsis Declared in `<chain.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int64_t GetMedianTimePast() const; ---- == Return Value The median block time in seconds since the Unix epoch. [.small]#Created with https://www.mrdocs.com[MrDocs]#