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,908 of 2,978    |
|    Robert AH Prins to All    |
|    Re: Help convert C function to Pascal fu    |
|    24 Sep 05 09:04:22    |
   
   From: prino@onetel.com   
      
   > As I am not familiar with the C programming language, I would   
   > greatly appreciate it if someone could please convert the C   
   > function below to a Pascal function. Thanks!   
   >   
   >   
   > /* converts time into units of milliseconds */   
   > long mytime(void)   
   > {   
   > static struct time t;   
   > static struct date d;   
   > static long mama;   
   >   
   > getdate(&d);   
   > gettime(&t);   
   >   
   > mama = ((((dostounix(&d,&t)-unixstart)*100)+t.ti_hund)*10);   
   >   
   > return(mama);   
   > }   
   It takes the current timestamp (yyyy-mm-dd-hh.mm.ss.uu) and converts it   
   to milliseconds since, IIRC, 1970. I'm sure you can do that yourself.   
      
   Robert   
   --   
   Robert AH Prins   
   prino at prino dot plus dot com   
      
   --- 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