Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | main: Skip empty formats | P. J. McDermott | 2021-09-01 | 1 | -0/+9 |
| | | | | | | This was previously done in _datetime_strftime() but in a way that would overflow the array if an empty format was at the end. Moving this logic into the caller is safer and makes a little more sense. | ||||
* | datetime: Collapse spaces after strftime() | P. J. McDermott | 2021-09-01 | 1 | -4/+4 |
| | | | | Turns "Sep 1" into "Sep 1". | ||||
* | datetime: Free fmt bufs when iterators reach end | P. J. McDermott | 2021-08-31 | 1 | -30/+3 |
| | | | | Simplifies caller code. | ||||
* | Add option to list supported formats | P. J. McDermott | 2021-08-31 | 1 | -4/+74 |
| | |||||
* | main: Handle options | P. J. McDermott | 2021-08-31 | 1 | -3/+90 |
| | |||||
* | main: Fix exit status on buffer alloc failure | P. J. McDermott | 2021-08-31 | 1 | -1/+1 |
| | | | | Fixes an issue in code moved in commit ad183ca4. | ||||
* | main: Prevent dates too large to consistently show | P. J. McDermott | 2021-08-29 | 1 | -2/+8 |
| | |||||
* | Move concatenation function | P. J. McDermott | 2021-08-29 | 1 | -4/+48 |
| | |||||
* | main: Improve output | P. J. McDermott | 2021-08-29 | 1 | -4/+5 |
| | |||||
* | Add loop, adjust datetime_parse() param and decls | P. J. McDermott | 2021-08-29 | 1 | -5/+17 |
| | |||||
* | datetime: Further implement | P. J. McDermott | 2021-08-29 | 1 | -3/+26 |
| | | | | | Simplify concatenation, factor out formats, and determine date if not specified. | ||||
* | datetime: WIP | P. J. McDermott | 2021-08-29 | 1 | -0/+11 |
| | |||||
* | Initial commit | P. J. McDermott | 2021-08-28 | 1 | -0/+5 |