01:01
jmdaemon has joined #crystal-lang
03:24
Sankalp has quit [Ping timeout: 250 seconds]
03:30
Sankalp has joined #crystal-lang
03:54
rymiel has quit [Quit: quit]
03:55
rymiel has joined #crystal-lang
04:10
ur5us has quit [Ping timeout: 264 seconds]
04:30
ur5us has joined #crystal-lang
05:34
ur5us has quit [Ping timeout: 246 seconds]
06:29
ur5us has joined #crystal-lang
07:10
walez__ has joined #crystal-lang
07:19
ur5us has quit [Ping timeout: 264 seconds]
07:46
ur5us has joined #crystal-lang
10:13
ur5us has quit [Ping timeout: 264 seconds]
11:19
jmdaemon has quit [Ping timeout: 268 seconds]
15:31
walez__ has quit [Ping timeout: 246 seconds]
16:21
notzmv has quit [*.net *.split]
16:21
antoszka has quit [*.net *.split]
16:21
oprypin has quit [*.net *.split]
16:21
tsujp has quit [*.net *.split]
16:21
yxhuvud has quit [*.net *.split]
16:21
ua_ has quit [*.net *.split]
16:21
straight-shoota has quit [*.net *.split]
16:21
dostoyevsky2 has quit [*.net *.split]
16:21
ssw has quit [*.net *.split]
16:21
fifr has quit [*.net *.split]
16:21
oz has quit [*.net *.split]
16:21
rymiel has quit [*.net *.split]
16:21
Flipez has quit [*.net *.split]
16:21
jhass has quit [*.net *.split]
16:21
greenbigfrog has quit [*.net *.split]
16:21
ngp has quit [*.net *.split]
16:21
Elouin has quit [*.net *.split]
16:21
mikko has quit [*.net *.split]
16:21
egality has quit [*.net *.split]
16:21
DeBot has quit [*.net *.split]
16:21
r0bby has quit [*.net *.split]
16:21
kiwiroy has quit [*.net *.split]
16:21
markmarkmark has quit [*.net *.split]
16:21
dannyAAM has quit [*.net *.split]
16:21
sagax has quit [*.net *.split]
16:21
jhass[m] has quit [*.net *.split]
16:21
olbat has quit [*.net *.split]
16:21
raph_ael has quit [*.net *.split]
16:21
riza has quit [*.net *.split]
16:21
miketheman has quit [*.net *.split]
16:21
FromGitter has quit [*.net *.split]
16:21
HumanG33k has quit [*.net *.split]
16:21
mookie has quit [*.net *.split]
16:21
Liothen has quit [*.net *.split]
16:21
xybre has quit [*.net *.split]
16:21
brw has quit [*.net *.split]
16:21
Stephie has quit [*.net *.split]
16:22
rymiel has joined #crystal-lang
16:22
sagax has joined #crystal-lang
16:22
notzmv has joined #crystal-lang
16:22
antoszka has joined #crystal-lang
16:22
oprypin has joined #crystal-lang
16:22
tsujp has joined #crystal-lang
16:22
yxhuvud has joined #crystal-lang
16:22
ua_ has joined #crystal-lang
16:22
fifr has joined #crystal-lang
16:22
jhass[m] has joined #crystal-lang
16:22
ssw has joined #crystal-lang
16:22
dostoyevsky2 has joined #crystal-lang
16:22
FromGitter has joined #crystal-lang
16:22
straight-shoota has joined #crystal-lang
16:22
egality has joined #crystal-lang
16:22
oz has joined #crystal-lang
16:22
HumanG33k has joined #crystal-lang
16:22
jhass has joined #crystal-lang
16:22
Flipez has joined #crystal-lang
16:22
greenbigfrog has joined #crystal-lang
16:22
ngp has joined #crystal-lang
16:22
mookie has joined #crystal-lang
16:22
DeBot has joined #crystal-lang
16:22
mikko has joined #crystal-lang
16:22
Elouin has joined #crystal-lang
16:22
dannyAAM has joined #crystal-lang
16:22
markmarkmark has joined #crystal-lang
16:22
kiwiroy has joined #crystal-lang
16:22
r0bby has joined #crystal-lang
16:22
riza has joined #crystal-lang
16:22
olbat has joined #crystal-lang
16:22
miketheman has joined #crystal-lang
16:22
raph_ael has joined #crystal-lang
16:22
Stephie has joined #crystal-lang
16:22
brw has joined #crystal-lang
16:22
xybre has joined #crystal-lang
16:22
Liothen has joined #crystal-lang
16:23
wolfshappen has quit [Max SendQ exceeded]
16:23
wolfshappen has joined #crystal-lang
16:59
<
FromGitter >
<oprypin:matrix.org> @mattrberry: no there is no such plan. sure would be nice but what are you supposed to do about all existing macros?
17:00
<
FromGitter >
<oprypin:matrix.org> and it is really high up on my personal wishlist, but still
18:08
rez has joined #crystal-lang
18:33
walez__ has joined #crystal-lang
18:41
_ht has joined #crystal-lang
19:26
rez has quit [Quit: much snoozes...]
19:58
jmdaemon has joined #crystal-lang
20:27
ur5us has joined #crystal-lang
20:50
_ht has quit [Remote host closed the connection]
20:51
rez has joined #crystal-lang
21:14
<
riza >
is there an stdlib way to reverse Time#to_unix_f ?
21:14
walez__ has quit [Ping timeout: 265 seconds]
21:18
<
FromGitter >
<Blacksmoke16> prob convert it to an integer first and then use the standard `.unix` constructor
21:21
<
riza >
sure but if I'm going to just chuck the precision out the window I'd just do Time#to_unix in the first place
21:23
<
FromGitter >
<Blacksmoke16> oh new idea
21:25
<
riza >
Time#to_unix_f is useless without the reverse for my use case
21:26
<
riza >
also on 1.5.1 `crystal play` will crash with that snippet
21:27
<
riza >
with over 1k issues i'm sure theres one of them which covers the bug, but i have not yet found it
21:29
<
riza >
hm maybe not
21:33
<
FromGitter >
<Blacksmoke16> sec, getting there
21:46
<
riza >
that works for the example you gave, but #remainder starts to dirty the float after 10e-5 or -6
21:46
<
FromGitter >
<Blacksmoke16> close enough? :shrug:
21:46
<
FromGitter >
<Blacksmoke16> could bump that issue with some of these thoughts, as yea. it is kinda annoying
21:47
<
riza >
unfortunately i have a database with millions of rows and i need to select out rows which match a timestamp group down to the nanosecond
21:49
<
riza >
i was able to get a little closer by multiplying by 1M before subtracting off the int
21:51
<
FromGitter >
<Blacksmoke16> `Time.parse now_float.to_s, "%s.%6N", Time::Location::UTC` would think this should work, but seems to drop the nanoseconds. iirc there was a discussion about that somewhere but cant seem to find it :/
21:52
<
FromGitter >
<Blacksmoke16> `"%s.%9N"` rather
21:52
<
riza >
yeah, I tried that route too :)
21:57
<
riza >
thansk for trying
21:57
<
riza >
i think this will require a deeper rework
22:51
rez has quit [Quit: much snoozes...]