123456789101112131415161718192021222324252627282930313233343536 |
- from datetime import datetime, timedelta
- class basic_event:
- def __init__(self, name, start, stamp, rrule, end = None):
- self.name = name
- self.start = start
- self.tstamp = stamp
- self.rrule = rrule
- if(end is not None):
- self.end = end
- else:
- self.end = start + timedelta(days=1)
- def set_start(self, start):
- self.start = start
- def set_end(self, end):
- self.end = end
- def set_name(self, name):
- self.name = name
- def set_rrule(self, rrule):
- self.rrule = rrule
- def get_name(self):
- return self.name
- def get_start(self):
- return self.start
- def get_end(self):
- return self.end
- def get_stamp(self):
- return self.tstamp
- def get_rrule(self):
- return self.rrule
|