j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #opal
wmnnd has joined #opal
boberetezeke has joined #opal
boberetezeke has quit [Ping timeout: 245 seconds]
wmnnd has quit [Quit: Reconnecting]
wmnnd has joined #opal
elia has joined #opal
fntzr has joined #opal
fntzr has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
<wmnnd>
Sometimes it's really complicated wrapping your head around all that date stuff.
<wmnnd>
Let's hope I don't mess up my next pull request now :-)
<wmnnd>
elia: Are you there?
<elia>
hi
<elia>
wmnnd, been there and failed lol
<elia>
timezones and encodings, always entertaining :)
<wmnnd>
elia: I implemented cweek and cyear because they're still missing from Time#strftime
<wmnnd>
However, I did my implementation in Ruby, not in Javascript.
<wmnnd>
Now I wanted to integrate it in Opal's Time#strftime but that one is all Javascript.
<elia>
wmnnd, yeah, javascript parts are intended to be more performant
<elia>
but correct is better than fast I guess
<elia>
so I'd say that if you have a correct implementation in Ruby you should post it in a PR
<wmnnd>
I'm just not an expert in "raw" Javascript and especially not when it comes to mixed Opal-JS objects.
<elia>
no worries, often using plain ruby is fine
<wmnnd>
Okay, but one more thing: I implemented it as a private methode Time#cweek_cyear which returns an array [cweek, cyear] because calculating one without the other doesn't work and makes no sense. Is that okay? MRI's core Time class doesn't have cweek and cyear and they can only be accessed indirectly via Time#strftime.
elia has quit [Quit: Computer has gone to sleep.]
professor_soap has joined #opal
professor_soap has left #opal [#opal]
ylluminarious has joined #opal
ylluminarious has quit [Ping timeout: 244 seconds]
wmnnd has quit [Ping timeout: 245 seconds]
meh` has joined #opal
<meh`>
adambeynon, ping
wmnnd has joined #opal
j_mcnally has joined #opal
ylluminarious has joined #opal
ylluminarious has quit [Ping timeout: 255 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wmnnd has quit [Ping timeout: 255 seconds]
meh` has quit [Quit: I don't want to live on this planet anymore.]
ylluminarious has joined #opal
ylluminarious has quit [Ping timeout: 260 seconds]