Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D739182B6 for ; Tue, 12 May 2015 17:19:03 +0000 (UTC) Received: (qmail 83632 invoked by uid 500); 12 May 2015 17:19:03 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 83573 invoked by uid 500); 12 May 2015 17:19:02 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 83562 invoked by uid 99); 12 May 2015 17:19:02 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2015 17:19:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 215061A2A25 for ; Tue, 12 May 2015 17:19:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.979 X-Spam-Level: ** X-Spam-Status: No, score=2.979 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id iLTFFjKNPKeF for ; Tue, 12 May 2015 17:19:00 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B6ACC21784 for ; Tue, 12 May 2015 17:18:59 +0000 (UTC) Received: by wicmc15 with SMTP id mc15so59359434wic.1 for ; Tue, 12 May 2015 10:18:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=WEIAJO0LjIOcCTJC2RzgqaRb40Elr3LUx8JWO1QRDu8=; b=YrjnvdlEmG/6lTTr6GKYWhxGoYYn6A1Q4Qc8dO5KbVsN+q7e3OsWCBnxP0d0LVE1N5 j4p21+cBNG/PcM08dTV78azulzHd8xHDt0D5PD873Xg1RtM3M+Izdxa/4jxaC4FvQJwN f53RvUfsbYpiL7P+nhsBSRJsY/ag9Ed1z2GEHXCLJvo0YnVl/J2RpdOx/ge2Gm8lMKAy sW+tpLCNVnUJNmtk6Qef3yEXIRDqgHGwpULeFUdlOhKcKULgc10jrjMUddDlFMfxgMqJ aDD2X3g9g8wKPibIIZaPsQBmA5lgIr/ogCgTgDYpeDiT0R180vKK5R26dMV4L1kDNSVJ wylQ== X-Gm-Message-State: ALoCoQl8F+DuI+8/AdMWkb74ZBtn8bYhI6jzIGKt2aM9Qn4nbqrC0n0OhKiwbLBcSE/6iOrNW2Yu MIME-Version: 1.0 X-Received: by 10.180.102.74 with SMTP id fm10mr144370wib.25.1431451139288; Tue, 12 May 2015 10:18:59 -0700 (PDT) Received: by 10.28.169.67 with HTTP; Tue, 12 May 2015 10:18:59 -0700 (PDT) Date: Tue, 12 May 2015 19:18:59 +0200 Message-ID: Subject: Date, not DateTime, queries. From: Igor Blanco To: dev@chemistry.apache.org Content-Type: multipart/alternative; boundary=f46d0444812babc1cd0515e5b031 --f46d0444812babc1cd0515e5b031 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have an alfresco installation with a custom model with a date property, date not DateTime. CMIS does not support date, only datetime properties. Although it is a date property it seems like Alfresco does store it as a complete datetime and CMIS queries seem to work as you would expect from a datetime. So if I want to do queries with a day resolution is there any better way than converting it to a greater lesser comparison? For examplo if I want to get documents with today's date is there something cleaner than: SELECT * FROM my:type WHERE my:date >=3D '2015-05-12 00:00:00.000Z' AND my:date <=3D'2015-05-12 23:59:59.999Z' Thanks --=20 Igor Blanco Gonz=C3=A1lez --f46d0444812babc1cd0515e5b031--