Added Feed.LastUpdate() method. It returns the timestamp of the last time the feed was updated. Value is returned in seconds.
This commit is contained in:
parent
a8057b0c92
commit
f5f5baa34e
|
@ -78,6 +78,10 @@ func New(cachetimeout int, enforcecachelimit bool, ch ChannelHandler, ih ItemHan
|
|||
return v
|
||||
}
|
||||
|
||||
// This returns a timestamp of the last time the feed was updated.
|
||||
// The value is in seconds.
|
||||
func (this *Feed) LastUpdate() int64 { return this.lastupdate }
|
||||
|
||||
func (this *Feed) Fetch(uri string) (err os.Error) {
|
||||
if !this.CanUpdate() {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue