travis-ci
359 of 359 new or added lines in 53 files covered. (100.0%)
7070 of 7539 relevant lines covered (93.78%)
4703.36 hits per line
1 |
require 'date'
|
5 all except jruby-9.1.9.0 and jruby-9.0.5.0 ✔ |
2 |
|
|
3 |
module Sisimai |
5 all except jruby-9.1.9.0 and jruby-9.0.5.0 ✔ |
4 |
# Sisimai::Time is a child class of Date for Sisimai::Data.
|
|
5 |
class Time < DateTime |
5 all except jruby-9.1.9.0 and jruby-9.0.5.0 ✔ |
6 |
# Imported from p5-Sisimail/lib/Sisimai/Time.pm
|
|
7 |
def to_json(*) |
5 all except jruby-9.1.9.0 and jruby-9.0.5.0 ✔ |
8 |
return self.to_time.to_i |
8 all except jruby-9.1.9.0, 2.1.1, and jruby-9.0.5.0 ✔ |
9 |
end
|
|
10 |
end
|
|
11 |
end
|