Included Modules

Files

Class Index [+]

Quicksearch

XSD::XSDGDay

Constants

Type

Public Class Methods

new(value = nil) click to toggle source
     # File lib/xsd/datatypes.rb, line 839
839:   def initialize(value = nil)
840:     init(Type, value)
841:   end

Private Instance Methods

_to_s() click to toggle source
     # File lib/xsd/datatypes.rb, line 855
855:   def _to_s
856:     s = format('%02d', @data.mday)
857:     add_tz(s)
858:   end
screen_data_str(t) click to toggle source
     # File lib/xsd/datatypes.rb, line 845
845:   def screen_data_str(t)
846:     /^(\d\d)(Z|(?:[+\-]\d\d:\d\d)?)?$/ =~ t.to_s.strip
847:     unless Regexp.last_match
848:       raise ValueSpaceError.new("#{ type }: cannot accept '#{ t }'.")
849:     end
850:     mday = $1.to_i
851:     zonestr = $2
852:     DateTime.civil(1, 1, mday, 0, 0, 0, tz2of(zonestr))
853:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.