Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1009

Show
Ignore:
Timestamp:
10/11/03 13:52:06 (5 years ago)
Author:
nahi
Message:

* DateTime#of? is obsolete. Use DateTime#offset?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/xsd/datatypes.rb

    r1001 r1009  
    486486  def to_time 
    487487    begin 
    488       if @data.of * SecInDay == Time.now.utc_offset 
     488      if @data.offset * SecInDay == Time.now.utc_offset 
    489489        d = @data 
    490490        usec = (d.sec_fraction * SecInDay * 1000000).to_f 
     
    644644    if @data.sec_fraction.nonzero? 
    645645      fr = @data.sec_fraction * SecInDay 
    646       shiftsize = fr.denominator.to_s.size 
     646      shiftsize = fr.denominator.to_s.size + 1 
    647647      fr_s = (fr * (10 ** shiftsize)).to_i.to_s 
    648648      s << '.' << '0' * (shiftsize - fr_s.size) << fr_s.sub(/0+$/, '')