Tags: doesanyone, function, programming, strptime, systems, unix, windows, workaround

strptime() workaround for windows

On Programmer » C & C++

1,365 words with 3 Comments; publish: Sun, 27 Apr 2008 05:36:00 GMT; (200156.25, « »)

strptime() is not supported by windows, only by unix systems. Does

anyone know something that I can use in place of this function for

windows?

thanks!

J

All Comments

Leave a comment...

  • 3 Comments
    • On 2007-07-12 17:58, justinchelos.c-programming.todaysummary.com.gmail.com wrote:

      > strptime() is not supported by windows, only by unix systems. Does

      > anyone know something that I can use in place of this function for

      > windows?

      Not sure of the exact differences but strftime seems to be close, and a

      bit safer too.

      Erik Wikstrm

      #1; Sun, 27 Apr 2008 05:37:00 GMT
    • Erik Wikstr?m wrote:

      > On 2007-07-12 17:58, justinchelos.c-programming.todaysummary.com.gmail.com wrote:

      > Not sure of the exact differences but strftime seems to be close, and a

      > bit safer too.

      strptime is the inverse of strftime. I suggest you ask in a group for

      windows programming, or search for a usable implementation (glibc has one,

      I believe). There are lots of POSIX libraries for Windows, I believe

      Microsoft also has one.

      rbh

      #2; Sun, 27 Apr 2008 05:39:00 GMT
    • On Jul 13, 8:43 am, Erik Wikstr=F6m <Erik-wikst....c-programming.todaysummary.com.telia.com> wrote:

      > On 2007-07-12 17:58, justinche....c-programming.todaysummary.com.gmail.com wrote:

      >

      JFGI

      > Not sure of the exact differences but strftime seems to be close,

      > and a bit safer too.

      strptime converts a text representation back

      into a time_t .

      #3; Sun, 27 Apr 2008 05:40:00 GMT