Exemple #1
0
func (t *Timestamp) SetTimestamp(b interfaces.Timestamp) {
	if b == nil {
		t.SetTimeMilli(0)
	}
	t.SetTimeMilli(b.GetTimeMilli())
}
Exemple #2
0
func (e *DirBlockInfo) SetTimestamp(timestamp interfaces.Timestamp) {
	e.Timestamp = timestamp.GetTimeMilli()
}