home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,911 of 2,978   
   William J. Leary Jr. to Robert AH Prins   
   Re: Help convert C function to Pascal fu   
   25 Sep 05 15:04:25   
   
   From: Bill_Leary@msn.com   
      
   "Robert AH Prins"  wrote in message   
   news:3pntquFasfb9U1@individual.net...   
   > "HubbleBubble"  wrote in message   
   > news:1127644225.062605.87950@g47g2000cwa.googlegroups.com...   
   > > I think this might help.   
   > > ((..example code omitted..))   
   >   
   > Obviously untested, completely missed the date!   
      
   I assumed when he said "I think this might help." he meant that, rather than   
   give a complete solution, it would give the original poster an idea on how   
   to start.  In fact, except for a missing semi-colon after "uses DOS" it does   
   compile and run.   
      
   As a few additional clues for the OP; in addition to not including the date,   
   HB's code delivers seconds rather than milliseconds.  In order to get   
   milliseconds since 00:00:00 01/01/1970 the result type would have to be   
   Double under TP5.5.  A Real doesn't  have enough precision for that scope at   
   that resolution.  I'm assuming the C code must have sourced from a UNIX   
   system where "long" is a 64 bit integer.  Yes, I tested it, but I couldn't   
   come up with a *simple* solution to the leap year issue, so I dropped it.   
      
       - Bill   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca