Post by Lew PitcherPost by GiovanniPost by rootI 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.