mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Use 64-bit years
This change makes strftime() go faster and makes it possible to format timestamps through the big bang to most of the stelliferous era. India has also been added as a timezone to most binaries. Since we were able to change the struct tm abi, this makes cosmopolitan libc superior, to just about everything else, when it comes to standing the test of time
This commit is contained in:
parent
2aebda7718
commit
cfc3a953ae
13 changed files with 542 additions and 482 deletions
|
@ -37,10 +37,10 @@ Copyright 2005-2019 Rich Felker, et. al.\"");
|
|||
asm(".include \"libc/disclaimer.inc\"");
|
||||
|
||||
char *strptime(const char *s, const char *f, struct tm *tm) {
|
||||
int i, w, neg, adj, min, range, itemsize, *dest, dummy;
|
||||
const char *ex, *ss;
|
||||
size_t len;
|
||||
int want_century = 0, century = 0, relyear = 0;
|
||||
const char *ex, *ss;
|
||||
long i, w, neg, adj, min, range, itemsize, *dest, dummy;
|
||||
long want_century = 0, century = 0, relyear = 0;
|
||||
while (*f) {
|
||||
if (*f != '%') {
|
||||
if (isspace(*f)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue