Reply
Thread Tools
Posts: 67 | Thanked: 34 times | Joined on Apr 2011 @ Co. Wicklow, Ireland
#1
As the title really.
Learning python and in order to progress, I have some application ideas.
One app I want to work at involves creating calendar entries. Can this be done and if so any coding examples or links to the documentation giving the format and parameters?
 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#2
You can create entries in the calendardb itself. There is the calendar-backend API, but that's C++ (and the only API I've used for this). Qt now has the mobility API, which may work. There are python bindings (apparently, found using Google) in the PySide project.

http://www.pyside.org/docs/pyside-mobility/

Good luck.
 

The Following User Says Thank You to jackburton For This Useful Post:
Posts: 67 | Thanked: 34 times | Joined on Apr 2011 @ Co. Wicklow, Ireland
#3
thanks for the info, i assume there is access to sqlite through python.
any idea how to format the datestart and dateend fields? not sure how they work. today (20th june 2011 at 15:00) is stored as 1308578400
 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#4
I believe that is unix time.

Conversion is here: http://soft.zoneo.net/Unixtime/index.php

Looks like the time zone is not part of that field, though.

I'm not a python guy, but i'm sure there's conversion functions for creating unix time entries with other date functions.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:17.