From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guido Van Hoecke Subject: Re: Problem with Google Calendar Synchronization Date: Wed, 08 May 2013 17:45:43 +0200 Message-ID: References: <87vc6vxf06.fsf@thinkpad.tsdh.de> <874ned6fhj.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua6yA-0001ND-Vt for emacs-orgmode@gnu.org; Wed, 08 May 2013 12:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua6ix-00064a-Vo for emacs-orgmode@gnu.org; Wed, 08 May 2013 11:56:18 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:57754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua6Yv-00029m-Hj for emacs-orgmode@gnu.org; Wed, 08 May 2013 11:45:49 -0400 Received: by mail-we0-f176.google.com with SMTP id p60so1887809wes.7 for ; Wed, 08 May 2013 08:45:48 -0700 (PDT) In-Reply-To: <874ned6fhj.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 8 May 2013 09:30:16 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: orgmode Eric S Fraga writes: > Guido Van Hoecke writes: > >> Hi, >> >> Thank you guys for your help. >> >> Got gawk from macports. > > Glad you got it. I did make use of whatever GNU awk provided and did > not try to keep to vanilla awk. Sorry about that! No prob at all! >> Hitting data error now: >> >> gawk: ./importGoogleCalendar.awk:143: (FILENAME=- FNR=34026) fatal: >> strftime: second argument less than 0 or too big for time_t >> >> I am investigating this now and will report my findings > Keep us posted. I've not seen this error before but I am not confident > that the parsing of date and time stamps in the awk script is > comprehensive. If you don't track it down, I would be happy to look at > your calendar file. There's no error in the script :) My ics file had a.o. my elder sister's birthday, and unfortunately her's as well as mine is (way) before the start of the epoch, so mktime returns a negative timestamp at line 63 and strftime at line 143 doesn't grok it. Anyway, I don't need these records as I have them in a separate anniversaries.org file that uses diary-style sexp entries for the birthdays. So Eric, rest assured, the script works fine for events occurring since the start of the epoch. It was quite a help to me. Thanks for your effort and for sharing it, Guido -- APL is a write-only language. I can write programs in APL, but I can't read any of them. -- Roy Keir