Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx/1.0.2/serializer.rb

Instance Method Summary collapse

Instance Method Details

#to_dateObject



119
120
121
# File 'lib/ofx/1.0.2/serializer.rb', line 119

def to_date
    Date.parse(self)
end

#to_datetimeObject



122
123
124
# File 'lib/ofx/1.0.2/serializer.rb', line 122

def to_datetime
    DateTime.parse(self)
end

#to_timeObject



125
126
127
# File 'lib/ofx/1.0.2/serializer.rb', line 125

def to_time
    ('-47120101' + self).to_datetime
end