/** * Get the date of the oldest message in 'thread' as a time_t value. */ func (self *Thread) GetOldestDate() int64 { if self.thread == nil { return 0 } date := C.notmuch_thread_get_oldest_date(self.thread) return int64(date) }
// OldestDate returns the date of the oldest message in the thread. func (t *Thread) OldestDate() time.Time { ctime := C.notmuch_thread_get_oldest_date(t.toC()) return time.Unix(int64(ctime), 0) }