Ignore:
Timestamp:
Jul 10, 2008, 10:03:47 PM (16 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #36

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/assumed_library_types.rb

    r70 r79  
    156156        true
    157157      end
    158     end # end of ISO_8601_DATE
     158    end # end of ISO8601_DATE
     159
     160    class ISO8601_TIME < TIME_DEFINITIONS
     161
     162    end # end of ISO8601_TIME
     163
     164    class ISO8601_TIMEZONE
     165      attr_accessor :sign, :hour, :minute
     166      def is_gmt?
     167        hour == 0
     168      end
     169      def as_string
     170        sprintf("Z%s%2d%2d", @sign, @hour, @minute)
     171      end
     172    end # end of ISO8601_TIMEZONE
    159173  end # end of Assumed_Types
    160174end # end of OpenEHR
Note: See TracChangeset for help on using the changeset viewer.