summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* README: Add more examplesP. J. McDermott2021-08-301-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-303-832/+131
|
* README: Document formats and Git repositoryP. J. McDermott2021-08-301-0/+89
| | | | | | | | | | | | | | | | | | | | Count the formats using: grep '^".*",$' src/datetime-formats.c | wc -l List the date formats using: sed -n 's|^/\* \(.*\) \*/$|\1|p' src/datetime-formats.c (But ignore 'Time only', 'ISO 8601: 1969-12-31 delimited by "T"', 'ISO 8601: 19691231 delimited by "T"', and '19691231'.) Math to 704: 43 (date formats) * 2 (positions: before or after time) = 86 86 + 1 (time-only no-date format) = 87 87 * 8 (time formats) = 696 696 + 8 (special formats) = 704
* datetime: Drop ambiguous delimiter-less formatsP. J. McDermott2021-08-301-4/+0
| | | | | "20210920210920" could be parsed as either 2021-09-20 21:09:20 or 20:21:09 2021-09-20.
* build: Drop unnecessary $(DATA)P. J. McDermott2021-08-291-1/+1
|
* datetime: Support weekday-only datesP. J. McDermott2021-08-292-2/+36
|
* datetime: Init all relevant struct tm membersP. J. McDermott2021-08-291-4/+11
|
* main: Prevent dates too large to consistently showP. J. McDermott2021-08-292-4/+10
|
* datetime: Make year optionalP. J. McDermott2021-08-292-5/+377
|
* datetime: Add some missing formatsP. J. McDermott2021-08-291-0/+8
|
* datetime: Remove debugging outputP. J. McDermott2021-08-291-5/+0
|
* Move concatenation functionP. J. McDermott2021-08-293-53/+52
|
* main: Improve outputP. J. McDermott2021-08-291-4/+5
|
* Add loop, adjust datetime_parse() param and declsP. J. McDermott2021-08-294-24/+44
|
* datetime: Minor cleanupP. J. McDermott2021-08-291-2/+2
|
* datetime: Further implementP. J. McDermott2021-08-296-50/+555
| | | | | Simplify concatenation, factor out formats, and determine date if not specified.
* datetime: WIPP. J. McDermott2021-08-294-0/+121
|
* Initial commitP. J. McDermott2021-08-2817-0/+1776