libera/#devuan-dev/ Monday, 2023-01-02

joergrwp: I think the code is absolutely fine. It's the infopage that is buggy00:16
joerghttps://www.gnu.org/software/coreutils/manual/html_node/Day-of-week-items.html says >> In this context, ‘last day’ or ‘next day’ is also acceptable; they move one week before or after the day that day by itself would represent. << As I read that, my next two lines would yield different result, but actually they don't and that's what I expect and think is most plausible00:21
joergcmd: date -d 'tue' >Tue Jan  3 00:00:00 CET 202300:21
joergcmd: date -d 'next tue' >Tue Jan  3 00:00:00 CET 202300:21
joergI'm happy with this. I'm NOT happy with >> In this context, ‘last day’ or ‘next day’ is also acceptable; they move one week before or after the day that day by itself would represent. <<00:23
joergthis >>> https://github.com/coreutils/gnulib/blob/master/doc/parse-datetime.texi#L364   (plusminus ~10 lines context around there) is the line with the bug00:29
joergI might even send a pullrequest/patch if I could come up with a better wording00:30
rrqwhat does "-d tue" do on a wednesday?00:33
joergsth like "next tuesday is identical to %tuesday for all weekdays unless the weekday is today, in which case weekday" returns todays's date and next weekday is in 7 days"00:35
joergrrq: it will return the date of next tuesday after today(wednesday)00:36
joerglike this:00:37
joergcmd: date >Mon Jan  2 00:37:33 CET 202300:37
joergcmd: date -d sun >Sun Jan  8 00:00:00 CET 202300:37
joergbut, the infopage is correct for today's weekday00:39
joergcmd: date -d mon >Mon Jan  2 00:00:00 CET 202300:39
joergcmd: date -d 'next mon' >Mon Jan  9 00:00:00 CET 202300:40
joergnot for any other weekday:00:41
joergcmd: date -d 'next tue' >Tue Jan  3 00:00:00 CET 202300:41
joergcmd: date -d 'tue' >Tue Jan  3 00:00:00 CET 202300:41
rrqyes, "next" seems to mean "the next such weekday after today"00:43
joergand I think this is very much expected behavior, just the infopage is completely missing it00:44
joergrrq: exactly00:44
rrqthen "this %day" seems to mean "the %day of this week" ...which is sensitive to the timezone re weeks starting on sun or mon00:46
rrqor maybe it's just ".. of the week starting today"?00:50
joergit's the 7 days starting today until today+6d00:51
rrqok00:51
joergwhile "next %day" means today+1d until today+7d00:51
joerghttps://github.com/coreutils/gnulib/blob/master/doc/parse-datetime.texi#L364-L366  is wrong00:54
rrqright (I won't go to M$ hosts unneccesarily of course, but I trust you :)00:55
joerg:-D  for you https://i.imgur.com/IjriGJz.jpg00:55
XenguyNice to see a principled man, people laugh at you nowadays instead : -/00:56
Xenguys/you/us00:57
joergyeah, I support this principle. I as well don't like github exactly because M$00:57
joerghere's the whole page in "compiled" form and not M$ server (I hope) https://www.gnu.org/software/coreutils/manual/html_node/Day-of-week-items.html01:00
joergor in good ole' konqueror:  info:/coreutils/Day of week items01:01
rwp"last" is the same as -1, "this" is the same as 0, "first" and "next" are both the same as +101:20
rwpIn all honesty I have had conflict with people in English who use "next"... I'll say incorrectly.01:22
rwpThey will use "next Friday" to mean the mean the Friday following the next Friday.01:22
rwpBut for me next Friday is the next Friday that occurs.  But to them they think next should skip one first.01:22
XenguyExactly01:25
joergyes, and date(1) exactly follows this (I do too) https://termbin.com/z0hcw - just the infopage is written by somebody who a) doesn't know the code and behavior of date(1) and b) is a member of that group you had conflicts with01:25
XenguyWhy is that?  I have no idea how that mistranslation could happen even01:25
XenguyNext just means next01:26
joerghehehe01:26
XenguyIt's not hard at all01:26
rwpI am sure marriages have ended over the use of "next" and whether one skips to the one after or not.01:27
Xenguythat and the dishes  = )01:27
joerg...or never get accomplished ;-)01:27
joergwe're marrying NEXT saturday ;-P01:28
XenguyHe ghosted me!!!01:28
XenguyWTF?01:28
Xenguy(Sorry for OT, ahem)01:28
rwpI think the usual idiom equivalent would be "Free beer tomorrow."  It's never tomorrow and there is never free beer.01:29
XenguyTomorrow never knows01:30
Xenguy^^ (Couldn't resist)01:30
joergtomorrow is the question [quote of a graffiti on a berlin club wall]01:31
XenguyThat's just good graffiti01:32
XenguyLike the poetry of the streets, or what have you01:32
XenguyOn the Road01:32
rrqin my memory "nästa fredag" (lit. "next Friday") does mean the Friday after the Friday coming up, except on Friday when it means the Friday coming up... different concept of "next"..01:35
rrqthat's in Swedish, (if you must ask :)01:37
rrq.. and is no excuse for documenting the date command wrongly01:38
joergdifferent language different concept01:38
joergactually that didn't occur to me. In english and german it's in line with the code of date(1)01:40
joergto more important is a correct https://www.gnu.org/software/coreutils/manual/html_node/Day-of-week-items.html01:41
joergcorrect like in "faithfully follows / describes behavior of the code"01:41
* joerg ponders "meaning of NEXT depends on your LOCALE setting" and starts giggling01:43
rrqof course... "próximo viernes" sounds like it could be where the swedes got their thinking from01:54
rrqas well as does "vendredi prochain"01:56
rwpOne problem for that documentation is that there are several critical bits and pieces that all must be taken together but those parts are spread out over the different chapters.01:59
joergI think it's exactly two lines of text, https://github.com/coreutils/gnulib/blob/master/doc/parse-datetime.texi#L364-L366  aka https://i.imgur.com/IjriGJz.jpg02:01
joergthe rest mostly seems correct, except https://github.com/coreutils/gnulib/blob/master/doc/parse-datetime.texi#L349 the part "(only if necessary) to reach that day of the week in the future."02:04
onefangWell for those of us living in Oz, Tomorrow is today.02:42
XenguyThat's not the trailing edge, but it could still be OK03:51

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!