Skip to content

Commit cf95b43

Browse files
authored
Update calendar.go
1 parent cb4b403 commit cf95b43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

calendar.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type Calendar struct {
1313
url string
1414
version float64
1515
timezone time.Location
16+
modified time.Time
1617
events Events
1718
eventsByDate map[string][]*Event
1819
eventByID map[string]*Event
@@ -69,6 +70,15 @@ func (c *Calendar) GetVersion() float64 {
6970
return c.version
7071
}
7172

73+
func (c *Calendar) SetLastModified(modified time.Time) *Calendar {
74+
c.modified = modified
75+
return c
76+
}
77+
78+
func (c *Calendar) GetLastModified() time.Time {
79+
return c.modified
80+
}
81+
7282
func (c *Calendar) SetTimezone(tz time.Location) *Calendar {
7383
c.timezone = tz
7484
return c

0 commit comments

Comments
 (0)