incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Verde <miguelitov...@gmail.com>
Subject Re: Best Timestamp?
Date Wed, 26 May 2010 21:56:51 GMT
Right, in C# this would be (not the most efficient way, but you get the
idea):
long timestamp = (DateTime.Now.Ticks - new DateTime(1970, 1, 1).Ticks)/10;

On Wed, May 26, 2010 at 4:50 PM, Mark Robson <markxr@gmail.com> wrote:

>  On 26 May 2010 22:42, Steven Haar <shaar@vintagesoftware.com> wrote:
>
>> What is the best timestamp to use while using Cassandra with C#? I have
>> been using DateTime.Now.Ticks, but I have seen others using different
>> things.
>>
>
> The standard that most clients seem to use is epoch-microseconds, or
> microseconds since midnight GMT 1/1/1970
>
> The trick is to get all clients to use the same value, so it only ever
> increases :)
>
> Mark
>

Mime
View raw message