[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Convert Date of Exported Log

From: Steven Kohus <steven.kohus_at_tcs.com>
Date: Fri, 21 Aug 2009 11:36:58 -0700 (PDT)

Hi all, I tried searching to see if someone previously posted about this, but I could not find any topics about it.

For our project metrics, I need to export the Tortoise SVN log and gather the statistics to integrate along with bug tracking, project statistics (lines of code, files not updated in 6+ months, etc), and more for automatically generated project metrics each week.

The issue I am having is with the revisions log, that contains each commit for the system, and the date is stored as a long number. In Tortoise it seems dates are stored in UTC format, but exported as a number. I am not sure how to convert this number to a date in UTC format or any other. Does anyone know how to convert this? Preferably in C# code, but any would be fine.

An example date in the log file is:
1247253286220549

Which is the date:
2009-07-10T19:14:46.220549Z
(July 10, 2009 3:14:46 PM for my local time, the above time is the GMT time)

I was guessing it was number of seconds or ticks from some specific date since the numbers continue to get higher with each commit, but nothing I tried seemed to work. Thank you for any help you can provide.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2386094

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-08-21 20:47:08 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.