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 <mar...@gmail.com> wrote:

>  On 26 May 2010 22:42, Steven Haar <sh...@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
>

Reply via email to