예제 #1
0
파일: notmuch.go 프로젝트: notmuch/notmuch
/**
 * 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)
}
예제 #2
0
파일: thread.go 프로젝트: gmuch/gmuch
// 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)
}