Example #1
0
/**
 * Get the date of the newest message in 'thread' as a time_t value.
 */
func (self *Thread) GetNewestDate() int64 {
	if self.thread == nil {
		return 0
	}
	date := C.notmuch_thread_get_newest_date(self.thread)

	return int64(date)
}
Example #2
0
// NewestDate returns the date of the oldest message in the thread.
func (t *Thread) NewestDate() time.Time {
	ctime := C.notmuch_thread_get_newest_date(t.toC())
	return time.Unix(int64(ctime), 0)
}