ruby-lang064

Activity Graph

Page 1 of 1

2016-04-28

[00:34:40] ruby-lang064: Ping timeout: 250 seconds

2016-04-27

[23:44:53] ruby-lang064: has joined #ruby

2016-02-02

[08:29:09] ruby-lang064: has joined #ruby
[08:32:48] ruby-lang064: Hello, I have a time issue that has me scratching my head. I am recording time at various points during a program that takes about 10 minutes to run. I am basically recording time in a hash periodically using Time.new.to_s. The problem is that by the time my program finishes, all recorded timestamps are the current time at the end of the run. It's as if the hash stored the Time objects and 'puts'ing the time causes the object to
[08:36:28] ruby-lang064: Ah, okay. Creating a gist now. thanks. The end of the message was "causes the object to return #now rather than the strings."
[08:46:19] ruby-lang064: I started with time objects, but then after my hash ended up with 4 identical time stamps, I thought the objects always returned current time or something.
[08:46:42] ruby-lang064: I thought string would be a sure fire way to guard against that hunch
[08:52:21] ruby-lang064: Well, I can't seem to recreate the issue in a simple ruby file. I can't really post my actual code b/c it is for work. I will just keep digging. Thanks for your time!
[08:57:59] ruby-lang064: Quit: Page closed

2015-09-21

[14:55:37] ruby-lang064: has joined #ruby
[14:56:44] ruby-lang064: has left #ruby: ()