Closed BenMakesGames closed 11 years ago
Interesting... that's a great addition. Are you sure you don't want to try and make a pull request for it? I can walk you through it, you can take as long as you need.
Here's a brief rundown...
git clone git@github.com:ThatGuyBen/walltime-js.git
TimeZoneTime.coffee
and translate your javascript you have into coffeescript.git add .
then git commit -m "Add setters to TimeZoneTime"
git push origin master
Take your time and see if you can pull it off.
After you fork the repo, you can edit the files directly within GitHub, if you don't know how to clone the repo locally.
"Take your time and see if you can pull it off." Pun intended?
The pun was obviously intended.
I take it you couldn't pull it off. I still believe in you @ThatGuyBen, but I'll try to get this integrated in by next week if I don't hear anything.
oh, sorry I haven't had time to look at this properly. it's a little hack I made for work (and am still using), and just thought it might prove useful for others; wasn't sure where else to put it. outside of work, I can't honestly say I'm interested in devoting a lot of time to it (working on other projects for fun!)... I realize that may be somewhat lazy on my part; sorry if it was inappropriate to post without having the will to carry through with unit testing and things.
The only thing I had to change was the setTime and the setFullYear. The setTime
needed to recalculate rules when given a timestamp, and the setFullYear
wasn't using setUTCFullYear
.
Check out the relevant unit tests for more info.
Thanks again for the contribution.
I'm interested in using walltime as a replacement for Date objects, to enhance other libraries. to that end, I've created several setter functions (and a toISOString function) for walltime.
I'm not very knowledgeable when it comes to github, but I'd like my work to have the potential to be useful for others; so: