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

RE: Re: Convert Date of Exported Log

From: Aaron Friesen <aaron_at_cartopac.com>
Date: Fri, 21 Aug 2009 16:49:13 -0400

> -----Original Message-----
> I tried this already, but it throws an error due to the number being
> too large and out of range for adding seconds:
>
> double d = double.Parse("1247253286220549");
> DateTime b = new DateTime(1970, 1, 1);
> b = b.AddSeconds(d); // Throws error.
>
> I did some math and 1247253286220549 is approximately 39550142 years?
> Assuming my math is right: 1247253286220549 / 60 / 60 / 24 / 365. So I
> did't think it is the seconds from the Epoch.

From your earlier post:
> 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)
 
The value you want to hand to parse is 1247253286.220549.

Six orders of magnitude makes a difference. ;^)

Aaron

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

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