summaryrefslogtreecommitdiffstats
path: root/src/datetime.c
Commit message (Collapse)AuthorAgeFilesLines
* datetime: Collapse spaces after strftime()P. J. McDermott2021-09-011-20/+29
| | | | Turns "Sep 1" into "Sep 1".
* datetime: Free fmt bufs when iterators reach endP. J. McDermott2021-08-311-3/+19
| | | | Simplifies caller code.
* datetime: Replace %d with %e in some formatsP. J. McDermott2021-08-311-12/+12
|
* Add option to list supported formatsP. J. McDermott2021-08-311-8/+116
|
* datetime: Find ends of arrays with sizeof()P. J. McDermott2021-08-311-10/+12
| | | | | | | | | | | | Before: $ wc -c @ 61256 @ After: $ wc -c @ 60616 @
* datetime: Add UNIX-like date formatP. J. McDermott2021-08-311-0/+2
|
* datetime: Replace goto with function callsP. J. McDermott2021-08-301-66/+72
| | | | | goto is fine, but this splits up a function that had grown a little long.
* datetime: Replace unnecessary fprintf with fputsP. J. McDermott2021-08-301-1/+1
|
* datetime: Replace large list of formatsP. J. McDermott2021-08-301-13/+131
|
* datetime: Support weekday-only datesP. J. McDermott2021-08-291-2/+18
|
* datetime: Init all relevant struct tm membersP. J. McDermott2021-08-291-4/+11
|
* datetime: Make year optionalP. J. McDermott2021-08-291-5/+17
|
* datetime: Remove debugging outputP. J. McDermott2021-08-291-5/+0
|
* Move concatenation functionP. J. McDermott2021-08-291-48/+3
|
* Add loop, adjust datetime_parse() param and declsP. J. McDermott2021-08-291-16/+24
|
* datetime: Minor cleanupP. J. McDermott2021-08-291-2/+2
|
* datetime: Further implementP. J. McDermott2021-08-291-47/+68
| | | | | Simplify concatenation, factor out formats, and determine date if not specified.
* datetime: WIPP. J. McDermott2021-08-291-0/+104