Good point! Why create a function that returns build numbers when it would
only return 1 of 2 numbers each day?  This gets more confusing the more I
play with it.  I always get sucked in by the strange logic postings.  I
need to go back to lurking!!

When I ran the sample code from the original posting, my result was 2
hours off from the original expected result.  I believe the original
problem was that the build time was an hour ahead of current time, but
mine was an hour behind.  The original time I had was sometime in the 3
PMs but when I added toLocal() (? not sure on exact function name), the
build time showed in the 9 AMs.  I can see the discrepancy because central
vs. GMT is 6 hours but why would the seconds since midnight add up to a
number that cannot be easily multiplied into the current time?

I am going to venture a guess that the docs are wrong.






Dean Cleaver <[EMAIL PROTECTED]>
Sent by: dotnet discussion <[EMAIL PROTECTED]>
05/24/2002 04:53 PM
Please respond to dotnet discussion


        To:     [EMAIL PROTECTED]
        cc:
        Subject:        Re: [DOTNET] Fw: Why is build time wrong?


Am I missing something completely, or would the "seconds since midnight
local time, modulo 2" not always be 0 or 1? The remainder when dividing
something by 2 can only ever be 1 or 0. This doesn't make any sense to
me at all...

Dino

-----Original Message-----
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Dave Levy
Sent: Saturday, 25 May 2002 08:32
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Fw: Why is build time wrong?


The modulus operator returns only the remainder of (seconds since
midnight) / 2.  I am not aware of any way to reverse the % operator
because:

6 % 1 = 0
6 % 2 = 0
6 % 3 = 0
6 % 6 = 0





David Ferguson <[EMAIL PROTECTED]>
Sent by: dotnet discussion <[EMAIL PROTECTED]> 05/24/2002 02:31
PM Please respond to dotnet discussion


        To:     [EMAIL PROTECTED]
        cc:
        Subject:        [DOTNET] Fw: Why is build time wrong?


According to:

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemReflection
AssemblyVersionAttributeClassctorTopic.asp

     build = days since January 1, 2000 local time
  revision = seconds since midnight local time, modulo 2

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.363 / Virus Database: 201 - Release Date: 21/05/2002

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to