# Missing strptime

4 messages from 2007-09-24 to 2007-09-25. Participants: mkraai@beckman.com, Johannes Schindelin, Linus Torvalds.
Thread: https://gitlist.dev/t/10001

## mkraai@beckman.com, 2007-09-24 23:35

Subject: Missing strptime
Message-ID: <OF8EBEA0A7.5425E9EA-ON88257360.00812AEA-88257360.00819919@beckman.com>
URL: https://gitlist.dev/e/OF8EBEA0A7.5425E9EA-ON88257360.00812AEA-88257360.00819919%40beckman.com

```
Howdy,

I'm porting Git to QNX.  Its C library doesn't provide strptime, so I'd 
was planning to use the Gnulib implementation.  Is that OK?  If so, should 
I try to leave it as close to upstream's version as possible or should I 
remove all of the unneeded cruft?  If not, is there an alternative 
implementation I should use?

Matt

P.S. Sorry for the footer.

The server made the following annotations 
---------------------------------------------------------------------------------
This message contains information that may be privileged or confidential and is the property of Beckman Coulter, Inc. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

---------------------------------------------------------------------------------

```

## Johannes Schindelin, 2007-09-25 00:30

Subject: Re: Missing strptime
Message-ID: <Pine.LNX.4.64.0709250127170.28395@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0709250127170.28395%40racer.site
In-Reply-To: <OF8EBEA0A7.5425E9EA-ON88257360.00812AEA-88257360.00819919@beckman.com>

```
Hi,

On Mon, 24 Sep 2007, mkraai@beckman.com wrote:

> I'm porting Git to QNX.

That's nice!

> Its C library doesn't provide strptime, so I'd was planning to use the 
> Gnulib implementation.  Is that OK?  If so, should I try to leave it as 
> close to upstream's version as possible or should I remove all of the 
> unneeded cruft?  If not, is there an alternative implementation I should 
> use?

The only user for strptime is convert-objects, a program that should 
probably move to contrib/ anyway.  It was used once, a long time ago, to 
convert from the old format, which hashed the compressed contents, to the 
current format, which hashes the contents _before_ compression.

AFAIAC if a similar need should arise, the better alternative would be to 
write git-fast-export, a tool which dumps the contents of a repository 
suitable to pipe into git-fast-import.

FWIW in mingw.git, we disabled convert-objects already a long time ago.

Ciao,
Dscho

```

## Linus Torvalds, 2007-09-25 00:52

Subject: Re: Missing strptime
Message-ID: <alpine.LFD.0.999.0709241750510.3579@woody.linux-foundation.org>
URL: https://gitlist.dev/e/alpine.LFD.0.999.0709241750510.3579%40woody.linux-foundation.org
In-Reply-To: <Pine.LNX.4.64.0709250127170.28395@racer.site>

```


On Tue, 25 Sep 2007, Johannes Schindelin wrote:
> 
> The only user for strptime is convert-objects, a program that should 
> probably move to contrib/ anyway.  It was used once, a long time ago, to 
> convert from the old format, which hashed the compressed contents, to the 
> current format, which hashes the contents _before_ compression.

Actually, it also changes the date format, I think.

> AFAIAC if a similar need should arise, the better alternative would be to 
> write git-fast-export, a tool which dumps the contents of a repository 
> suitable to pipe into git-fast-import.

Agreed. It probably might as well just be moved to contrib and let it 
bitrot.

		Linus

```

## Johannes Schindelin, 2007-09-25 01:03

Subject: Re: Missing strptime
Message-ID: <Pine.LNX.4.64.0709250202130.28395@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0709250202130.28395%40racer.site
In-Reply-To: <alpine.LFD.0.999.0709241750510.3579@woody.linux-foundation.org>

```
Hi,

On Mon, 24 Sep 2007, Linus Torvalds wrote:

> On Tue, 25 Sep 2007, Johannes Schindelin wrote:
> > 
> > The only user for strptime is convert-objects, a program that should 
> > probably move to contrib/ anyway.  It was used once, a long time ago, 
> > to convert from the old format, which hashed the compressed contents, 
> > to the current format, which hashes the contents _before_ compression.
> 
> Actually, it also changes the date format, I think.

Yes, right, that was actually why strptime() was needed.

Ciao,
Dscho

```
