From d91b306ad9e3c941b1b2ac6c54b029e825c8c5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96ppen?= Date: Sun, 6 Sep 2020 20:52:59 +0100 Subject: [PATCH] dates, or no dates? --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 69780ce..3365883 100644 --- a/README.md +++ b/README.md @@ -32,15 +32,31 @@ There's a lot of good 'Gemlog' content in Geminispace but no easy way to follow * A series of links that include a date (where a gemlog links to other pages) OR: * A series of dates in the page (more difficult to get right, but some microblogs are just a series of entries separated by dates) -### Specification +### Specification A To guarantee an option to follow content: first header (any of the 3 sizes) in a page includes the words: `gemlog`, `feed`, `log`, `blog`, `μlog` AND links on adjacent lines that include dates in the link title. +Date formats: +* `yyyy-mm-dd` ISO 8601 +* `dd-mm-yyyy` Reverse ISO 8601 +* Either of above with other common delimiters, eg. _01/05/2020_ + +Example: ``` # My Gemlog => /more dd/mm/yyyy optional => /another dd/mm/yyyy => /first dd/mm/yyyy hello, World! - ``` + +### Questions/Notes +* American 'freedom' date format `mm/dd/yyyy` should be rejected if possible (what were they thinking?) +* Two digit years should be ignored: `dd/mm/yy` - no way to safely infer date +* Other date formats? I've seen `dd-MMM-yy`, `ddMMMyy`, `yyyy-mm-dd` +* Some gemlogs have no dates at all + +### Specification B + +Ignore all of the above - just look for a change in the first link on a page. Include menu option to follow _any_ page and store the first link... +