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