Class: Fluent::BigQuery::DateTimeFieldSchema
Instance Attribute Summary
Attributes inherited from FieldSchema
#mode, #name
Instance Method Summary
collapse
Methods inherited from FieldSchema
#format, #initialize, #to_h
Instance Method Details
144
145
146
147
148
149
150
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 144
def format_one(value)
if value.respond_to?(:strftime)
value.strftime("%Y-%m-%dT%H:%M:%S.%6L")
else
value
end
end
|
#type ⇒ Object
140
141
142
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 140
def type
:datetime
end
|