[#CBlockIndex-GetMedianTimePast]
= xref:CBlockIndex.adoc[CBlockIndex]::GetMedianTimePast
:relfileprefix: ../
:mrdocs:

Returns the median timestamp of the previous nMedianTimeSpan blocks&period;

== Synopsis

Declared in `&lt;chain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int64&lowbar;t
GetMedianTimePast() const;
----

== Return Value

The median block time in seconds since the Unix epoch&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
