Simplify (and hopefully clarify) some date-parsing arithmetic.
This commit is contained in:
parent
a46910eef1
commit
ef404327b0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80666
@ -885,7 +885,7 @@ parse8601(char *s)
|
||||
tm.tm_year = ((ul / 1000000) - 19) * 100;
|
||||
ul = ul % 1000000;
|
||||
case 6:
|
||||
tm.tm_year = tm.tm_year - (tm.tm_year % 100);
|
||||
tm.tm_year -= tm.tm_year % 100;
|
||||
tm.tm_year += ul / 10000;
|
||||
ul = ul % 10000;
|
||||
case 4:
|
||||
|
Loading…
Reference in New Issue
Block a user