ot::MeshCoP::Dataset::WriteTimestamp() method
Writes the Timestamp TLV (Active or Pending). If the TLV already exists, it will be replaced. Otherwise, the TLV will be appended.
Arguments
aType
The timestamp type, active or pending.
aTimestamp
The timestamp value.
Return value
kErrorNone Successfully updated the Timestamp TLV. kErrorNoBufs Could not append the Timestamp TLV due to insufficient buffer space.