method

test_zone_0000

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: TimeExtentionTest

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.

test_zone_0000() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/time.rb, line 749
    def test_zone_0000
      assert_equal(true, Time.parse("2000-01-01T00:00:00Z").utc?)
      assert_equal(true, Time.parse("2000-01-01T00:00:00-00:00").utc?)
      assert_equal(false, Time.parse("2000-01-01T00:00:00+00:00").utc?)
      assert_equal(false, Time.parse("Sat, 01 Jan 2000 00:00:00 GMT").utc?)
      assert_equal(true, Time.parse("Sat, 01 Jan 2000 00:00:00 -0000").utc?)
      assert_equal(false, Time.parse("Sat, 01 Jan 2000 00:00:00 +0000").utc?)
      assert_equal(false, Time.rfc2822("Sat, 01 Jan 2000 00:00:00 GMT").utc?)
      assert_equal(true, Time.rfc2822("Sat, 01 Jan 2000 00:00:00 -0000").utc?)
      assert_equal(false, Time.rfc2822("Sat, 01 Jan 2000 00:00:00 +0000").utc?)
      assert_equal(true, Time.rfc2822("Sat, 01 Jan 2000 00:00:00 UTC").utc?)
    end
Register or log in to add new notes.