https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112014-04-14T21:26:14ZRuby Issue Tracking SystemRuby master - Bug #9742: Error when trying to debug line with "startDate = Time.parse('2014-Apr-01 12:00:30')"https://redmine.ruby-lang.org/issues/9742?journal_id=462122014-04-14T21:26:14Zsreesreekanth1 (Sreekanth Simhadri)sreesreekanth1@yahoo.com
<ul></ul><p>Sreekanth Simhadri wrote:</p>
<blockquote>
<p>Tried debug and parse string which has date and time to Time using below code</p>
<p>Time.parse('2014-Apr-01 12:00:30')</p>
<p>Actual Result: Script failed with error attached errorLog.txt file which was copied from console</p>
<p>Expected Result: Should return Time without any error</p>
</blockquote>
<p><strong>Resolved</strong> the issue by using DateTime.parse('2014-Apr-01 12:00:30').to_time</p> Ruby master - Bug #9742: Error when trying to debug line with "startDate = Time.parse('2014-Apr-01 12:00:30')"https://redmine.ruby-lang.org/issues/9742?journal_id=462132014-04-14T21:36:13Zavit (Andrew Vit)andrew@avit.ca
<ul></ul><p>There is a stdlib time with the parse feature which is not included in core. You can do:</p>
<pre><code>require 'time'
Time.parse('2014-Apr-01 12:00:30')
</code></pre> Ruby master - Bug #9742: Error when trying to debug line with "startDate = Time.parse('2014-Apr-01 12:00:30')"https://redmine.ruby-lang.org/issues/9742?journal_id=464452014-05-02T06:51:16Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul> Ruby master - Bug #9742: Error when trying to debug line with "startDate = Time.parse('2014-Apr-01 12:00:30')"https://redmine.ruby-lang.org/issues/9742?journal_id=464682014-05-03T00:54:32Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>Ask debugger gem developers.</p> Ruby master - Bug #9742: Error when trying to debug line with "startDate = Time.parse('2014-Apr-01 12:00:30')"https://redmine.ruby-lang.org/issues/9742?journal_id=475662014-07-02T08:00:09Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Third Party's Issue</i></li></ul>