tmdate(2): one more typo
no more top arse. only bottom arse.
This commit is contained in:
parent
ce5b6036f0
commit
703b0d3e6d
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ Add a day. Because cross daylight savings, only 23 hours are added.
|
||||||
Tm t;
|
Tm t;
|
||||||
char *date = "Sun Nov 2 13:11:11 PST 2019";
|
char *date = "Sun Nov 2 13:11:11 PST 2019";
|
||||||
if(tmparse(&t, "W MMM D hh:mm:ss z YYYY, date, nil) == nil)
|
if(tmparse(&t, "W MMM D hh:mm:ss z YYYY, date, nil) == nil)
|
||||||
print("failed top arse");
|
print("failed to arse");
|
||||||
t.day++;
|
t.day++;
|
||||||
tmnorm(&t);
|
tmnorm(&t);
|
||||||
print("%τ", &t); /* Mon Nov 3 13:11:11 PST 2019 */
|
print("%τ", &t); /* Mon Nov 3 13:11:11 PST 2019 */
|
||||||
|
|
Loading…
Reference in a new issue