From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Google calendar to org mode script and a feature request for agenda Date: Fri, 09 Jul 2010 09:30:36 +0100 Message-ID: <87wrt5kqfn.wl%ucecesf@ucl.ac.uk> References: Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=36031 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OX8z1-0006y3-VB for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 04:30:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OX8yw-0007Nm-PO for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 04:30:55 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:54896) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OX8yw-0007Mx-L5 for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 04:30:50 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Torsten Wagner Cc: org-mode mailing list On Fri, 09 Jul 2010 09:57:48 +0900, Torsten Wagner wrote: > > Just by reading and without the possibility to test it. Why you multiply the hour with 36 instead of 3600 to get seconds? Because the value returned by the %z format for the date command is in "hundred hours" form so that, for instance, GMT+1 gives +0100... Furthermore, note that I remove the leading 0 or else the bash arithmetic evaluation treats the number as octal. The comment is a little terse! Sorry about that. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D