[#wallet-ScriptPubKeyMan-GetTimeFirstKey]
= xref:wallet.adoc[wallet]::xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]::GetTimeFirstKey
:relfileprefix: ../../
:mrdocs:

Returns the creation time of the earliest key, used as the wallet&apos;s birth time&period;

== Synopsis

Declared in `&lt;wallet&sol;scriptpubkeyman&period;h&gt;`

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

== Return Value

The earliest key creation time, in seconds since the epoch&period;


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