🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel! Set by lizmat on 6 September 2022. |
|||
00:06
reportable6 left
00:07
reportable6 joined
00:28
deoac joined
00:43
bigdata joined
00:55
frost joined
01:03
LoupGris is now known as Lycanthropy
01:04
Lycanthropy is now known as Haematophage
02:00
razetime joined
02:07
bigdata left
02:46
jetchisel left
02:49
jetchisel joined
03:04
kotrcka joined
03:19
epony left
03:30
razetime left
03:56
razetime joined
04:21
vrurg_ joined,
vrurg left
04:32
kotrcka left
05:15
frost left
06:07
reportable6 left
06:08
reportable6 joined
06:58
xinming left,
xinming joined
07:02
jetchisel left
07:42
vrurg joined,
vrurg_ left
08:18
razetime left
08:35
razetime joined
08:43
MoC joined
08:50
sena_kun joined
09:30
epony joined
10:02
discord-raku-bot left
10:03
discord-raku-bot joined
10:07
discord-raku-bot left,
discord-raku-bot joined
11:00
jetchisel joined
11:19
razetime left
11:26
razetime joined
12:07
reportable6 left,
reportable6 joined
13:02
sena_kun left
13:07
sena_kun joined
13:36
MoC left,
MoC joined
13:41
jgaz joined
13:52
jgaz left
13:54
jgaz joined
14:27
jgaz left
14:30
razetime left
15:01
jgaz joined
15:56
vrurg_ joined,
vrurg left
16:21
sena_kun left
16:24
jgaz left,
deoac left
16:28
jgaz joined
|
|||
tbrowder | m: say $*TZ | 16:54 | |
camelia | 7200 | ||
tonyo | way wrong, i'm minus double that | 16:55 | |
tbrowder | heh, morning, tonyo ! | 16:56 | |
tonyo | how's it going? | 16:57 | |
tbrowder | can you imagine a situation where a "normal" system doesn't provide a timezone number? | ||
going well, thank you. using yr cro/apache cookbook is on my TODO list | 16:59 | ||
16:59
jgaz left
|
|||
tbrowder | i'm working on a subclass of DateTime and trying to figure how much faith to put into $*TZ as a reasonable indicator of longitude (center of 15 degree slices, that is) | 17:01 | |
my gut tells me to rely on it but let the user know about it during or after installation | 17:04 | ||
the longitude is in lieu of having a suitable db of world timezone info | 17:05 | ||
i've looked at DateTime::Timezones but i'm not sure it's in a convenient format | 17:06 | ||
guifa_ | the problem with using the number as representative of longitude is that many parts of the world run far off from their "natural" time | 17:09 | |
tbrowder | what i'm doing at the moment is taking local time from DateTime (default is UTC) and letting the user enter an abbeviation for his TZ and offer to incorporate that info into my own db | 17:10 | |
guifa_ | Olson IDs will get you much closer, since they're designed to be anchored to large population centers (which are more stable than, say, countries) | 17:11 | |
tbrowder | guifa_: yes, and i'm not sure how best to handle it, though. unless there is a system value of lat/long, user entry is probably the way i'll go. | 17:13 | |
Nemokosch | +1 for guifa | ||
guifa_ | WIth that, the Europe/Madrid will get you a much more accurate rendition of location for someone in GMT+1 than someone in Europe/Bratislava | ||
plus DST might make someone appear to jump around | 17:14 | ||
tbrowder | i have 99+ percent of US covered, for now i'm allowing user to enter tz abbrev and taking his system $*TZ for the "truth" | 17:16 | |
hm, i forgot about %ENV<TZ> to get the full name, gotta go back to DateTime::TimeZones... | 17:20 | ||
thanks for the inspiration, gang | 17:21 | ||
guifa_ | You could also use | ||
raku.land/github:alabamenhu/UserTimezone | |||
I have an update I need to publish | 17:22 | ||
tbrowder | uh, that's DateTime::TimeZone | ||
guifa_ | No, that just gets you the name of their timezone | ||
it doesn't have any dependencies | 17:23 | ||
tbrowder | does alabamenhu's module have dst info? | 17:27 | |
guifa_ | I can't remember which module I put the code in (and I might not have released it) that converts timezone ids to the more common language ones (e.g. "Eastern standard time") but I haven't had too much time to take a look at those recently, sadly | ||
DST can be calculated from the timezone ID + the time. That info is in Timezones::ZoneInfo | 17:28 | ||
but I haven't made it very userfriendly yet | 17:29 | ||
basically, feed in a UNIX-epoch time and the zone data, and it'll provide a tm struct that gives you the date/time with a flag for DST | 17:30 | ||
e.g. | 17:31 | ||
tbrowder | erg, i think i'll wait unless i can grok it | 17:32 | |
guifa_ | my %data = calendar-from-posix(now.to-posix, timezone-data user-timezone) | ||
%data<dst> # 0 = standard, 1 = daylight savings | 17:33 | ||
%data<gmt-offset> # offset in seconds | |||
Nemokosch | isn't alabamenhu the same person as guifa for all intents and purposes? 😄 | 17:34 | |
guifa_ | %data<tz-abbr> # common abbreviation (e.g. "CST" "EDT") | ||
Nemokosch we are :-) | |||
tbrowder | i think so, but he's been confusing me for years and i forget that. | 17:35 | |
Nemokosch | 😂 | 17:36 | |
guifa_ | someone namesquats me on github and the world goes to hell lol | 17:38 | |
tbrowder | ok, i will try the module, oops, test failure | 17:40 | |
guifa_ | hmmm | 17:41 | |
i'll try to take a look at it this weekend | |||
sorry new job and moved so the past few months I've been very behind on Raku dev stuff =/ | 17:42 | ||
Nemokosch | which module? | 17:45 | |
UserTimezone installed ok for me | |||
tbrowder | i just tried Timezones::ZoneInfo as suggested above | 17:46 | |
Nemokosch | okay... also installed correctly for me | 17:48 | |
tbrowder | do you have latest zed? | 17:49 | |
guifa_ | what was the error? I'll try to track it down if I can | ||
tbrowder | *zef | ||
oops, too many servers, updating zef now... | 17:51 | ||
sjn | hey, when's the next rakudo release? I see the last one was 2022.07 :-( | 17:54 | |
tbrowder | t/03-warn.t failed | ||
sjn: hi, i think there are some stoppers | 17:55 | ||
sjn | oh noes! | ||
for two months? must have been serious o_O | 17:56 | ||
tbrowder | guifa_: test 03-warn.t failed | 17:57 | |
gotta go for now, back later | |||
Nemokosch | with what values? | ||
17:59
linkable6 left,
evalable6 left
18:01
tib left,
tib joined
18:02
linkable6 joined,
evalable6 joined
18:07
reportable6 left
18:08
reportable6 joined
|
|||
tbrowder | only error specific i see is no plan in outptu (zef --debug) | 18:10 | |
*output | |||
Nemokosch | hm, interesting | 18:15 | |
I remember there was a broken TAP version, the only thing I'd know with failing tests | |||
guifa_ | ah, I guess I should throw in an actual test in there. But historically that's not caused any problems. | ||
18:16
tib left
18:22
linkable6 left
18:24
linkable6 joined
19:24
notable6 left,
benchable6 left,
bisectable6 left,
quotable6 left,
unicodable6 left,
releasable6 left,
squashable6 left,
coverable6 left,
reportable6 left,
statisfiable6 left,
nativecallable6 left,
shareable6 left,
sourceable6 left,
committable6 left,
linkable6 left,
tellable6 left,
greppable6 left,
evalable6 left
19:25
quotable6 joined,
shareable6 joined,
committable6 joined,
releasable6 joined,
nativecallable6 joined,
linkable6 joined
19:26
evalable6 joined,
sourceable6 joined,
unicodable6 joined,
reportable6 joined,
benchable6 joined,
statisfiable6 joined
19:27
tellable6 joined,
greppable6 joined,
bisectable6 joined,
squashable6 joined,
coverable6 joined,
notable6 joined
19:52
sena_kun joined
20:05
MoC left
20:12
squashable6 left
20:14
squashable6 joined
20:56
vrurg joined,
vrurg_ left
21:10
Haematophage left,
Colere joined
21:13
Furor joined
21:16
Colere left
22:16
bloatable6 left,
squashable6 left,
reportable6 left,
greppable6 left,
releasable6 left,
tellable6 left,
committable6 left,
evalable6 left,
sourceable6 left,
coverable6 left,
benchable6 left,
linkable6 left,
bisectable6 left,
nativecallable6 left,
notable6 left,
statisfiable6 left,
quotable6 left,
shareable6 left,
unicodable6 left,
shareable6 joined,
squashable6 joined,
reportable6 joined,
evalable6 joined,
unicodable6 joined,
releasable6 joined
22:17
statisfiable6 joined,
benchable6 joined,
greppable6 joined,
sourceable6 joined,
nativecallable6 joined,
quotable6 joined
22:18
linkable6 joined,
tellable6 joined,
bloatable6 joined,
notable6 joined,
bisectable6 joined,
coverable6 joined,
committable6 joined
22:29
deoac joined
22:42
Kaipei joined
22:46
Kaiepi left
23:24
sena_kun left
|