Class: TeradataCli::DateTimeType
- Defined in:
- lib/teradata-cli/connection.rb
Overview
TIME, TIMESTAMP
Instance Attribute Summary
Attributes inherited from FieldType
#format, #name, #title, #type_code, #type_name
Instance Method Summary collapse
-
#unmarshal(f) ⇒ Object
bind_code :CHAR_NN, 452.
Methods inherited from FieldType
code_names, codes, create, #initialize, #inspect, #to_s
Constructor Details
This class inherits a constructor from TeradataCli::FieldType
Instance Method Details
#unmarshal(f) ⇒ Object
bind_code :CHAR_NN, 452
1032 1033 1034 1035 1036 |
# File 'lib/teradata-cli/connection.rb', line 1032 def unmarshal(f) # debugger #FIXME dt = @extractor.extract(f.read(@length)) # "2013-10-10 16:44:39" DateTime.parse("#{dt[0,10]}T#{dt[11,19]}") rescue nil end |