libical

Is there a portable way to get the local system timezone into a libical icaltimetype?

天大地大妈咪最大 提交于 2019-12-13 12:46:18
问题 libical seems to only accept the Olsen city name to look up timezones in its database. What I've got that's portable is a struct tm which has a GMT offset and the shorthand 3-4 letter code (EST/EDT etc) but there's no function that accepts that in libical. I have a really lousy way where I scan the tz list from libical trying to match the tznames, and that will probably work, but I am well aware this is a bad idea. But I haven't found any other way of getting the local timezone into a libical

Compiling libical for armv7 and arm64 with cmake

十年热恋 提交于 2019-12-13 02:05:21
问题 I've gone through the various solutions of compiling libical v1.0 for armv7, however the latest libical library available on github seems to have moved to cmake: https://github.com/libical/libical Can someone please guide me as to what I should be doing to get this to compile for iOS and Mac (one fat static library)? I've been able to compile it for the Mac but don't know how to do the same for armv7 and arm64. Thanks! 回答1: I tried everything from ios-toolchain for cmake to writing a build

RRULE parsing in Postgresql

风格不统一 提交于 2019-12-09 18:47:58
问题 The goal: to generate a list of timestamps, each representing an event occurrance, from an RRULE string (i.e. FREQ=WEEKLY;INTERVAL=2;COUNT=8;WKST=SU;BYDAY=TU,TH ) and a starting timestamp. Since these times will be changed at the whim of a user, postgresql is desired for (1) it's quality of strict business logic and (2) triggers (auto-update rows when a value changes) Alternative Solution: I ended up using plpythonu (python language for postgresql). The dateutil library has a great rrule

Compiling Libical for arm64 and x86_64 for iOS

扶醉桌前 提交于 2019-12-07 07:09:58
问题 It took some time for me to compile LibiCal for arm64 and x86_64 architecture for iOS(device and simulator). Thought it may be useful for others. Here is the steps I followed to compile LibiCal-1.0. I have taken code from below link Compiling libical and modified a bit to suit for Xcode 5.1 1) download LibiCal from below URL http://sourceforge.net/projects/freeassociation/ Untar and get into libCal-1.0 folder. Then run ./bootstrap (Need to download make tools from http://www.jattcode.com

Compiling Libical for arm64 and x86_64 for iOS

安稳与你 提交于 2019-12-05 13:47:09
It took some time for me to compile LibiCal for arm64 and x86_64 architecture for iOS(device and simulator). Thought it may be useful for others. Here is the steps I followed to compile LibiCal-1.0. I have taken code from below link Compiling libical and modified a bit to suit for Xcode 5.1 1) download LibiCal from below URL http://sourceforge.net/projects/freeassociation/ Untar and get into libCal-1.0 folder. Then run ./bootstrap (Need to download make tools from http://www.jattcode.com/installing-autoconf-automake-libtool-on-mac-osx-mountain-lion/ ) Use below script #!/bin/sh # SEE: http:/

Parse .ics data in iPhone project

风格不统一 提交于 2019-12-05 02:48:17
问题 I am making an iPhone application and i want to use libical to parse .ics dat from an .ics file OR from the URL location of the .ics file.. Firstly i want to know how i would go about using libical in my project? How to add it into my iphone project etc.. ive seen some guides but they seem to be specific to OSX projects and not iphone projects.. Secondly i want to parse event names and their descriptions, so i that i can store the event names/ descriptions as variables.. I was wondering if

RRULE parsing in Postgresql

﹥>﹥吖頭↗ 提交于 2019-12-04 12:42:46
The goal: to generate a list of timestamps, each representing an event occurrance, from an RRULE string (i.e. FREQ=WEEKLY;INTERVAL=2;COUNT=8;WKST=SU;BYDAY=TU,TH ) and a starting timestamp. Since these times will be changed at the whim of a user, postgresql is desired for (1) it's quality of strict business logic and (2) triggers (auto-update rows when a value changes) Alternative Solution: I ended up using plpythonu (python language for postgresql). The dateutil library has a great rrule parser. mydatabase=# CREATE FUNCTION parse_occurrences(rule text, start timestamp) RETURNS timestamp[] AS

Parse .ics data in iPhone project

余生颓废 提交于 2019-12-03 17:33:48
I am making an iPhone application and i want to use libical to parse .ics dat from an .ics file OR from the URL location of the .ics file.. Firstly i want to know how i would go about using libical in my project? How to add it into my iphone project etc.. ive seen some guides but they seem to be specific to OSX projects and not iphone projects.. Secondly i want to parse event names and their descriptions, so i that i can store the event names/ descriptions as variables.. I was wondering if this was possible using libical.. if so could someone please show me roughly how i may go about

Compiling libical

徘徊边缘 提交于 2019-11-30 05:32:51
I would like to compile libical and add it to my Xcode project. I have read the README file and run the following commands in Terminal.app: ./configure and ./configure --prefix=/proj/local/ Am I supposed to get compiled .a files somewhere that I can drag and drop into my project? I am the person who originally created those build scripts located here... http://code.google.com/p/mwiphonesdk/source/browse/trunk/iMADE/PrepTasks/05+Event+Calendar/Packers+Schedule/libical/build+scripts/ I have now updated the scripts to work with the latest iOS 6/Xcode 4.5 toolset. It is quite different and I have

Compiling libical

半腔热情 提交于 2019-11-29 04:15:52
问题 I would like to compile libical and add it to my Xcode project. I have read the README file and run the following commands in Terminal.app: ./configure and ./configure --prefix=/proj/local/ Am I supposed to get compiled .a files somewhere that I can drag and drop into my project? 回答1: I am the person who originally created those build scripts located here... http://code.google.com/p/mwiphonesdk/source/browse/trunk/iMADE/PrepTasks/05+Event+Calendar/Packers+Schedule/libical/build+scripts/ I