[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77537] [Ruby trunk Bug#12825][Rejected] Time.parse doesn't work when using T as time delimiter and only hours are specified
From:
nobu@...
Date:
2016-10-10 12:21:28 UTC
List:
ruby-core #77537
Issue #12825 has been updated by Nobuyoshi Nakada.
Status changed from Open to Rejected
Thomas Mayrhofer wrote:
> When using the T delimiter instead of \s the hour isn't parsed correctly.
>
> ~~~ ruby
> require 'time'
> Time.parse('2000-01-01T10') # => 2000-01-01 00:00:00 +0100
> Time.parse('2000-01-01 10') # => 2000-01-01 10:00:00 +0100
> ~~~
'T' is used by ISO-8601, but the former is invalid for it and that part is ignored.
In the latter case, a word "10" is fallen back to hour.
> When the minutes are defined everything works as expected.
Ditto.
----------------------------------------
Bug #12825: Time.parse doesn't work when using T as time delimiter and only hours are specified
https://bugs.ruby-lang.org/issues/12825#change-60806
* Author: Thomas Mayrhofer
* Status: Rejected
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
When using the T delimiter instead of \s the hour isn't parsed correctly.
~~~ ruby
require 'time'
Time.parse('2000-01-01T10') # => 2000-01-01 00:00:00 +0100
Time.parse('2000-01-01 10') # => 2000-01-01 10:00:00 +0100
~~~
When the minutes are defined everything works as expected.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>