From thrift-user-return-48-apmail-incubator-thrift-user-archive=incubator.apache.org@incubator.apache.org Mon Aug 11 14:29:41 2008 Return-Path: Delivered-To: apmail-incubator-thrift-user-archive@locus.apache.org Received: (qmail 81783 invoked from network); 11 Aug 2008 14:29:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Aug 2008 14:29:40 -0000 Received: (qmail 22411 invoked by uid 500); 11 Aug 2008 14:29:40 -0000 Delivered-To: apmail-incubator-thrift-user-archive@incubator.apache.org Received: (qmail 22402 invoked by uid 500); 11 Aug 2008 14:29:40 -0000 Mailing-List: contact thrift-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: thrift-user@incubator.apache.org Delivered-To: mailing list thrift-user@incubator.apache.org Received: (qmail 22391 invoked by uid 99); 11 Aug 2008 14:29:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2008 07:29:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bryan@rapleaf.com designates 208.96.16.213 as permitted sender) Received: from [208.96.16.213] (HELO mail.rapleaf.com) (208.96.16.213) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2008 14:28:42 +0000 Received: from mail.rapleaf.com (localhost.localdomain [127.0.0.1]) by mail.rapleaf.com (Postfix) with ESMTP id AAB7D12502EB for ; Mon, 11 Aug 2008 07:29:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=rapleaf.com; q=dns; s=m1; b=SmBv5 9GzZuE36p4hMJS9H1HUgyvHjWvHEywcAJ01v+jWjV34lowr4RfrYLwImuQTY7LIE jTeM13i4Zu1VTOdOgeVbxeqdWuJ50XNj6Ye0w6lmpC8jNz4jIiJru/rvV5wfGhk1 1g0G9ASrDjz+OGNNHnHLtTNYTCPz3ORV/N5Dwg= Received: from [192.168.1.111] (unknown [192.168.1.111]) by mail.rapleaf.com (Postfix) with ESMTP id 9A0491250179 for ; Mon, 11 Aug 2008 07:29:09 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <6cf16f130808102252k7f566342h4ca71f090ebf3679@mail.gmail.com> References: <6cf16f130808102252k7f566342h4ca71f090ebf3679@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Bryan Duxbury Subject: Re: Support for Date/Time data type Date: Mon, 11 Aug 2008 07:29:08 -0700 To: thrift-user@incubator.apache.org X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org Use an i64 and represent it as milliseconds since epoch. -Bryan On Aug 10, 2008, at 10:52 PM, kpowerinfinity wrote: > Hello, > > I have been trying out thrift, and was looking at thrift > documentation for a > way to serialize data of type date/time. However, I couldn't find any > documentation for that. I also checked out the lex files > (thriftl.ll in the > sources), but couldn't find any tokens to handle datetime kind of > data. I > wanted to send a field of type datetime to another service. Is this > not > supported? Or am I expected to convert them into standard strings > and do the > message exchange? > > Thanks, Krishna. > > -- > http://kpowerinfinity.blogspot.com