(no title)

Oscar Brito

Apache Cassandra Columns Timestamp:

DataModel says:

Timestamps can be anything you like, but microseconds since 1970 is a convention. Whatever you use, it must be consistent across the application otherwise earlier changes may overwrite newer ones.

.Net Implementation:

 static readonly DateTime unitStartDateTime = new DateTime(1970, 1, 1).ToUniversalTime();

static readonly long unitStartDateTimeTicks = new DateTime(1970, 1, 1).ToUniversalTime().Ticks;

        public static long Timestamp

                long nowTicks = DateTime.UtcNow.Ticks;

                long tick = nowTicks - unitStartDateTimeTicks;

                long microseconds = tick / 10;

                return microseconds;

Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.

Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.

Feel free to contact divhide.