<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/win32/strptime.c, branch zstd</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=zstd</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=zstd'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2025-05-26T13:37:07+00:00</updated>
<entry>
<title>win32: update implementation of strptime(3)</title>
<updated>2025-05-26T13:37:07+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-05-26T13:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1f29171a25b605bd50fd03698181e7530d81206b'/>
<id>urn:sha1:1f29171a25b605bd50fd03698181e7530d81206b</id>
<content type='text'>
Changes are mostly cosmetic.
</content>
</entry>
<entry>
<title>win32: changes to allow timezones in dates</title>
<updated>2021-09-17T10:41:25+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-09-17T08:18:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9e16eecc70020e9a603d637f6a8fdfc7c95c30e1'/>
<id>urn:sha1:9e16eecc70020e9a603d637f6a8fdfc7c95c30e1</id>
<content type='text'>
Create mingw_strptime() to return timezone offset as a separate
argument (since Microsoft's struct tm doesn't have the required
member).

Import timegm() from musl.

Update parse_datestr() to use mingw_strptime().

Enable FEATURE_TIMEZONE in the default configuration.

GitHub issue #230.
</content>
</entry>
<entry>
<title>win32: update strptime(3) implementation</title>
<updated>2020-08-03T15:09:38+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-08-03T15:09:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=597dc43c9c8dad0daf9d4d0648e3e83c352b4ffd'/>
<id>urn:sha1:597dc43c9c8dad0daf9d4d0648e3e83c352b4ffd</id>
<content type='text'>
Update to latest code from gnulib.  This adds a '%q' (quarter) field
descriptor.

Remove the 'neg' variable from the code to handle the '%z' (timezone)
field descriptor.  Since our struct tm lacks a tm_gmtoff member '%z' is
only supported "for reasons of symmetry".  Since the computed value is
never used there's no need to negate it.
</content>
</entry>
<entry>
<title>win32: reduce size of strptime()</title>
<updated>2020-02-16T13:17:54+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2020-02-16T13:07:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e4446487d16118ebfcc88b168607073385a71e8a'/>
<id>urn:sha1:e4446487d16118ebfcc88b168607073385a71e8a</id>
<content type='text'>
Our implementation of strptime() doesn't support alternative number
formats.  Rather than duplicate the code for the affected conversion
specifications just return to the start of the switch statement.

Saves 256 bytes.
</content>
</entry>
<entry>
<title>win32/strptime: fix for negative timezones</title>
<updated>2017-08-23T12:05:27+00:00</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-06-27T22:12:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=272b07a50f6c5b52243a4a53f4ea6c7f5ca4fe7f'/>
<id>urn:sha1:272b07a50f6c5b52243a4a53f4ea6c7f5ca4fe7f</id>
<content type='text'>
I bet this has been fixed in gnulib, too.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32/strptime: avoid old-style declarations</title>
<updated>2017-08-23T11:53:06+00:00</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-06-27T22:10:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=09c01ce5d0518b51cd6d3114351c967f295878da'/>
<id>urn:sha1:09c01ce5d0518b51cd6d3114351c967f295878da</id>
<content type='text'>
This was inherited from gnulib. While at it, get rid of the ugly (and
unneeded) LOCALE constants.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32/strptime: ensure that strptime()/localtime_r() are declared</title>
<updated>2017-08-23T11:51:24+00:00</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-06-27T22:07:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9d989adec01904ad5a3c1021e4f610c39fa27b94'/>
<id>urn:sha1:9d989adec01904ad5a3c1021e4f610c39fa27b94</id>
<content type='text'>
When `#include`ing libbb.h, it implicitly includes mingw.h (with a
prototype for strptime()) and it also defines
_POSIX_THREAD_SAFE_FUNCTIONS so that the time.h header declares
localtime_r().

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: use emulated localtime_r in strptime</title>
<updated>2014-01-21T20:02:23+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2014-01-21T20:02:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=91229e15fe0cbc76eeae6f389879a42bff443f70'/>
<id>urn:sha1:91229e15fe0cbc76eeae6f389879a42bff443f70</id>
<content type='text'>
</content>
</entry>
<entry>
<title>win32: use strptime from gnulib</title>
<updated>2014-01-20T22:07:54+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2014-01-20T22:07:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=61a0fc571381226c48728b262495c1c5eafc4fed'/>
<id>urn:sha1:61a0fc571381226c48728b262495c1c5eafc4fed</id>
<content type='text'>
</content>
</entry>
</feed>
