Skip to content

Commit c1851d1

Browse files
committed
Minor cleanup for Time changes. Note that ToD::TimeOfDay is not a sufficient replacement, due to lack of support for timezones (at least, without ActiveSupport).
1 parent 850a346 commit c1851d1

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

lib/rdf/model/literal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module RDF
4949
# RDF::Literal.new(123).datatype #=> XSD.integer
5050
# RDF::Literal.new(9223372036854775807).datatype #=> XSD.integer
5151
# RDF::Literal.new(3.1415).datatype #=> XSD.double
52-
# RDF::Literal.new(Time.now).datatype #=> XSD.time
52+
# RDF::Literal.new(Time.now).datatype #=> XSD.dateTime
5353
# RDF::Literal.new(Date.new(2010)).datatype #=> XSD.date
5454
# RDF::Literal.new(DateTime.new(2010)).datatype #=> XSD.dateTime
5555
#

spec/model_literal_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def self.literal(selector)
2525
when :date then [Date.new(2010)]
2626
when :datetime then [DateTime.new(2011)]
2727
when :time then [Time.parse('01:02:03Z')]
28-
when :date then [Date.new(2010)]
2928
else
3029
raise("unexpected literal: :#{selector}")
3130
end

0 commit comments

Comments
 (0)