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

Re: Convert Date of Exported Log

From: Stefan Fuhrmann <stefanfuhrmann_at_alice-dsl.de>
Date: Fri, 21 Aug 2009 22:46:33 +0200

> 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.

As of r16978, the CSV files contain formatted UTC strings.
StdAfx.cpp of that patch contains a code snippet for the
_time64_t -> UTC conversion.

-- Stefan^2.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-08-21 22:47:01 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.