Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 16857 invoked from network); 19 Apr 2010 08:27:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 08:27:45 -0000 Received: (qmail 2617 invoked by uid 500); 19 Apr 2010 08:27:44 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 2480 invoked by uid 500); 19 Apr 2010 08:27:42 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 1971 invoked by uid 99); 19 Apr 2010 08:27:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 08:27:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.23.155.109] (HELO mail.vervis.ws) (213.23.155.109) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 08:27:34 +0000 Received: from dionysos.vervis.ws ([192.168.0.11]) by dionysos.vervis.ws ([192.168.0.11]) with mapi; Mon, 19 Apr 2010 10:27:13 +0200 From: Peter Frisch To: "user@couchdb.apache.org" Date: Mon, 19 Apr 2010 10:25:02 +0200 Subject: Map function to find docs in time interval Thread-Topic: Map function to find docs in time interval Thread-Index: Acrfmc53bI8uUHrGQVC91Hj6yVV7qg== Message-ID: <9B0D55A7F3222047AE1B5E9189587C1C0D6566D349@dionysos.vervis.ws> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {C7F316B1-EAC4-46D0-8D97-2344005D356B} x-cr-hashedpuzzle: AKQO Cvba D7Hu EIbN EZWV Eo3U EtoM Ezs4 FDsW FGKQ GuEr HHH1 HRAZ HkFA Hq4b KIGj;1;dQBzAGUAcgBAAGMAbwB1AGMAaABkAGIALgBhAHAAYQBjAGgAZQAuAG8AcgBnAA==;Sosha1_v1;7;{C7F316B1-EAC4-46D0-8D97-2344005D356B};cABlAHQAZQByAC4AZgByAGkAcwBjAGgAQAB2AGUAcgB2AGkAcwAuAGQAZQA=;Mon, 19 Apr 2010 08:25:02 GMT;TQBhAHAAIABmAHUAbgBjAHQAaQBvAG4AIAB0AG8AIABmAGkAbgBkACAAZABvAGMAcwAgAGkAbgAgAHQAaQBtAGUAIABpAG4AdABlAHIAdgBhAGwA acceptlanguage: de-DE, en-US Content-Type: multipart/alternative; boundary="_000_9B0D55A7F3222047AE1B5E9189587C1C0D6566D349dionysosvervi_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_9B0D55A7F3222047AE1B5E9189587C1C0D6566D349dionysosvervi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have documents that contain two timestamps (visitor entrance time and vis= itor time of exit). Now I'm trying to write a map function that would allow= me to find out which visitors have been "in" at a specific given time. Any= suggestions how I would do that? Right now the timestamps are given as arrays containing year, month, day, h= our, minute, second, UTC offset but that could be changed if that doesn't s= eem to be a wise decision. --_000_9B0D55A7F3222047AE1B5E9189587C1C0D6566D349dionysosvervi_--