Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Python create calendar entry - how?

    Reply
    mmarks | # 1 | 2011-06-20, 18:22 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jackburton | # 2 | 2011-06-20, 20:49 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to jackburton For This Useful Post:
    mmarks

     
    mmarks | # 3 | 2011-06-20, 22:17 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jackburton | # 4 | 2011-06-21, 01:42 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout