summaryrefslogtreecommitdiff
path: root/sys/src/cmd/seconds.c
AgeCommit message (Collapse)Author
2021-01-17seconds: remove junk from usageOri Bernstein
2020-09-01seconds: tolerate trailing whitespace in datesOri Bernstein
This allows handling dates with leading and trailing whitespace, including newlines.
2020-08-10seconds: use new libc date apiOri Bernstein
2020-06-15libc: revert date change again. this is getting ridicuoulus.cinap_lenrek
this breaks the sample from the seconds manpage, and overall produces funky results. this needs alot more testing. term% seconds '23 may 2011' seconds: tmparse: invalid date 23 may 2011 near 'may 2011' term% seconds '2019-01-01 00:00:00' -118370073600
2020-06-14libc, seconds: new time and date apis (try 2)Ori Bernstein
Redo date handling in libc almost entirely. This allows handling dates and times from outside your timezones, fixes timezone loading in multithreaded applications, and allows parsing and formatting using custom format strings. As a test of the APIs, we replace the formatting code in seconds(1), shrinking it massively. The last commit missed a few removals, and made it unnecessarily hard to do an update.
2020-06-14libc: reverting previous change until ori can fix itcinap_lenrek
2020-06-13libc, seconds: new time and date apis.Ori Bernstein
Redo date handling in libc almost entirely. This allows handling dates and times from outside your timezones, fixes timezone loading in multithreaded applications, and allows parsing and formatting using custom format strings. As a test of the APIs, we replace the formatting code in seconds(1), shrinking it massively.
2019-12-08hack around timezone issues.Ori Bernstein
2012-05-22add seconds(1) commandcinap_lenrek