Project

General

Profile

Bug #317

strptime needs %Z support

Added by Garrett D'Amore about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
lib - userland libraries
Start date:
2010-10-07
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

strptime lacks %Z. Doing this right, also needs timegm(). It turns out that %Z is needed, because strptime also fails the following test:

strptime("%c", strftime("%c", ....))

I.e. you can't parse the output of date +%c.


Files

t.c (796 Bytes) t.c Garrett D'Amore, 2010-12-03 07:35 PM
#1

Updated by Garrett D'Amore about 10 years ago

  • Category set to lib - userland libraries
#2

Updated by Garrett D'Amore almost 10 years ago

  • Status changed from New to In Progress
  • Assignee set to Garrett D'Amore
#3

Updated by Garrett D'Amore almost 10 years ago

Test program attached...

#4

Updated by Garrett D'Amore almost 10 years ago

  • Status changed from In Progress to Resolved

Fixed in abc9578d5a0e

Also available in: Atom PDF