code logs -> 2021 -> Sun, 22 Aug 2021< code.20210821.log - code.20210823.log >
--- Log opened Sun Aug 22 00:00:04 2021
00:36 catalyst [catalyst@Nightstar-gji.nhk.124.31.IP] has joined #code
00:36 catalyst_ [catalyst@Nightstar-gji.nhk.124.31.IP] has quit [Ping timeout: 121 seconds]
00:37 catalyst_ [catalyst@Nightstar-qgsbej.dab.02.net] has joined #code
00:40 catalyst [catalyst@Nightstar-gji.nhk.124.31.IP] has quit [Ping timeout: 121 seconds]
00:49 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
00:51 catalyst_ [catalyst@Nightstar-qgsbej.dab.02.net] has quit [Ping timeout: 121 seconds]
01:17 celticminstrel [celticminst@Nightstar-d200r4.dsl.bell.ca] has joined #code
01:17 mode/#code [+o celticminstrel] by ChanServ
01:19
<@celticminstrel>
There are tons and tons of date tools to be found online, but I can’t seem to find any geared towards interpreting incomplete dates.
01:20
<@celticminstrel>
Like “find a year that contains Friday 13 in a specific month” for example.
01:20
<@celticminstrel>
Presumably given additional constraints to narrow it down.
01:21
<@celticminstrel>
But more general than that.
01:22
<@celticminstrel>
Now that I’m searching based on that example in particular, I see TimeAndDate.com supports that exact example, but no other similar example.
01:22
<@celticminstrel>
Tho I have no idea how you’d find it from the front page.
01:23
<@celticminstrel>
“that example” —> “Friday the 13th” but not “Friday the 13th in a specific month”
01:24
<@celticminstrel>
I mean, it’s barely enough, but still…
01:24
<&Reiver>
This is usually when I just grab a table of dates in a database and just start throwing WHERE clauses, so I'm not much help
01:24
<@celticminstrel>
Eek.
01:25 Yossarian [soryu@Nightstar-d7h8ki.org] has quit [Operation timed out]
01:25
<@celticminstrel>
(Other constraints that would be nice to have include moon phases.)
01:25
<&[R]>
> a = []; for (var y = 1970; y < 2022; ++y) { var d = new Date(y, 6, 13); if (5 == d.getDay()) { a.push(d) } }
01:25
<&Reiver>
WHERE DayOfWeek = "Friday" AND DayOfMonth = 13 AND CalendarMonth = "September" or whatever
01:25
<@celticminstrel>
Hmm.
01:25
<&[R]>
That's how I'd do it TBH
01:25
<&[R]>
<3 REPL for stuff like that
01:26
<@celticminstrel>
Right, that can work, sure…
01:26
<@celticminstrel>
Is that JavaScript specifically?
01:26
<&[R]>
Yes
01:27
<&[R]>
You can do that either with node.js, or the web console in Firefox or Chrom(e|ium)
01:27
<@celticminstrel>
Geh, November is not 11?
01:28
<&[R]>
Months and days of week start at 0
01:28
<&[R]>
But days of month start at 1
01:28
<@celticminstrel>
Please be consistent, API people!
01:28
<&[R]>
Because having a SANE date object was not a priority
01:28
<@celticminstrel>
BTW, is that true in ISO8601 too? It’s not, right?
01:31
<&[R]>
No idea
01:31
<&[R]>
No idea
01:32
<@celticminstrel>
I should know this but I can’t remember.
01:36 Degi [Degi@Nightstar-sqsa5q.dyn.telefonica.de] has quit [Operation timed out]
01:42 Degi [Degi@Nightstar-81h9in.dyn.telefonica.de] has joined #code
01:43 [R] [rs@genoce.org] has quit [Ping timeout: 121 seconds]
02:08 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
02:17
<@gnolam>
<[R]> Months and days of week start at 0
02:17
<@gnolam>
Where "day of week" is ill defined because, as usual, Americans hate units of measurement that make sense.
02:20
<@gnolam>
Americans: "Weekend" means "Saturday and Sunday".
02:20
<@gnolam>
Also Americans: Sunday is the start of a week.
02:20
<@gnolam>
...
02:22
<@celticminstrel>
I guess that is contradictory, huh…
03:13
<&McMartin>
A week is a line segment in time.
03:13
<&McMartin>
It has two ends.
03:33
< Alek>
that is, indeed, true.
04:45
<&McMartin>
Hm. Time for me to implement cheap-ass futures, in C
05:13 Kindamoody is now known as Kindamoody|afk
05:36 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code
05:36 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
08:04 abudhabi_ [abudhabi@Nightstar-uii6t5.adsl.tpnet.pl] has joined #code
10:38 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
12:12 [R] [rs@Nightstar-d7h8ki.org] has joined #code
12:12 mode/#code [+ao [R] [R]] by ChanServ
12:14 abudhabi_ [abudhabi@Nightstar-uii6t5.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
12:20 [RMS] [rs@Nightstar-d7h8ki.org] has joined #code
12:20 [R] [rs@genoce.org] has quit [Connection closed]
13:21 catalyst_ [catalyst@Nightstar-8qdg67.dab.02.net] has joined #code
13:23 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
13:23 Kindamoody|afk [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
13:25 Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
13:25 mode/#code [+o Kimo|autojoin] by ChanServ
13:35 abudhabi_ [abudhabi@Nightstar-di96oh.centertel.pl] has joined #code
14:14 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
14:16 catalyst_ [catalyst@Nightstar-8qdg67.dab.02.net] has quit [Ping timeout: 121 seconds]
14:56 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
14:56 mode/#code [+qo Vornicus Vornicus] by ChanServ
17:06 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:24 Netsplit Golgafrincham.Nightstar.Net <-> Krikkit.Nightstar.Net quits: @Kimo|autojoin, Alek, @Tamber, @ErikMesoy, Degi, @PinkFreud, @gnolam
17:24 Netsplit over, joins: Degi, @PinkFreud, @gnolam, Alek, @Tamber, @ErikMesoy, @Kimo|autojoin
18:27 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [The TLS connection was non-properly terminated.]
18:44 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
19:57 Kimo|autojoin is now known as Kindamoody
20:25 McMartin [mcmartin@Nightstar-i80eaa.ca.comcast.net] has quit [[NS] Quit: leaving]
20:28 McMartin [mcmartin@Nightstar-i80eaa.ca.comcast.net] has joined #code
20:29 mode/#code [+ao McMartin McMartin] by ChanServ
21:16 Yossarian [soryu@Nightstar-d7h8ki.org] has joined #code
21:18 Kindamoody is now known as Kindamoody[zZz]
21:39 abudhabi [abudhabi@Nightstar-uii6t5.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
21:40 abudhabi [abudhabi@Nightstar-r9r39d.adsl.tpnet.pl] has joined #code
22:26 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Connection closed]
--- Log closed Mon Aug 23 00:00:05 2021
code logs -> 2021 -> Sun, 22 Aug 2021< code.20210821.log - code.20210823.log >

[ Latest log file ]