You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by kpowerinfinity <kp...@gmail.com> on 2008/08/11 07:52:49 UTC

Support for Date/Time data type

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

Re: Support for Date/Time data type

Posted by Bryan Duxbury <br...@rapleaf.com>.
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