I tried the code given in the example code given on the page http://wiki.forum.nokia.com/index.ph...o_use_calendar

The script on running gave error.
1 - In
cal = calendar.open()

module has no attribute open

2 - On changing calendar to

import time, e32calendar # import modules
now = time.time() # Get current date and time
cal = e32calendar.open() # Open Calender

The error i get is- name 'mktime' is not defined

3 - If I change the mktime to time.mktime , then i get
Index Error. i.e. is list index out of range in
first_km = cal.find_instances(jan01, now, u'km')[0]

Any idea where I am going wrong ?


Chirag Narula