www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/23/12:06:12

Message-ID: <37EA2DE3.685A245@montana.com>
From: bowman <bowman AT montana DOT com>
X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i586)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Question (beginner's): strptime
References: <7sd6hr$249$1 AT nnrp1 DOT deja DOT com>
Lines: 15
Date: Thu, 23 Sep 1999 07:40:51 -0600
NNTP-Posting-Host: 208.4.224.54
X-Trace: newsfeed.slurp.net 938093987 208.4.224.54 (Thu, 23 Sep 1999 08:39:47 CDT)
NNTP-Posting-Date: Thu, 23 Sep 1999 08:39:47 CDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Myron Seto wrote:
> 
> Here's a program to calculate the number of days between two dates.
> But it won't compile because of "strptime" which is not defined in
> djgpp.  Can someone help me to correct this problem?

fill in a struct tm using sscanf() and an appropriate format string.
mktime() will then give you the time_t value.



-- 
Bear Technology  Making Montana safe for Grizzlies

http://people.montana.com/~bowman/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019