home bbs files messages ]

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

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

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

   Message 86,861 of 87,272   
   root to Lew Pitcher   
   Re: strptime()   
   06 Dec 24 03:59:32   
   
   From: NoEMail@home.org   
      
   Lew Pitcher  wrote:   
   > On Thu, 05 Dec 2024 19:00:02 +0100, Giovanni wrote:   
   >   
   >> On 12/5/24 18:30, root wrote:   
   >>> I asked Gemini to give me a c program to convert date format to epoch   
   >>> time and conversely. It provided a program that uses strptime()   
   >>> which gcc on Slackware 15.0 does not recognize. My version   
   >>> of gcc is gcc version 11.2.0 (GCC). I don't have an installation   
   >>> with current so I can't check if a later version of gcc will   
   >>> work. Anyone here use strptime?   
   >>> Thanks.   
   >>   
   >> I never used it but but I see that is included in the standard library.   
   >>   Did you try "man strptime"?   
   >   
   > He didn't bother. He's just a code monkey, copying code "written" by a   
   > Large Language Model, and doesn't really know what he's doing.   
   >   
   >   
   >   
      
   It sure seems lile that, but I have been coding for seventy years.   
   I am working on a larger project and needed to pop back and   
   forth between different date formats including seconds from   
   epoch. I saw two options: 1) could try to work out the   
   details myself, 2) I could use popen and pass the problem   
   to a system call. I wanted to do it faster than either   
   1 or 2, so I thought I would give an AI a chance to   
   help. Try it yourself sometime.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca