Module: GnuCash::Timestamps
- Included in:
- Invoice, Invoice::Customer, Invoice::Entry
- Defined in:
- lib/gnucash/timestamps.rb
Constant Summary collapse
- FORMAT =
"%Y%m%d%H%M%S"
Instance Method Summary collapse
Instance Method Details
#from_timestamp(value) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/gnucash/timestamps.rb', line 6 def value case value when ::DateTime then value when ::Numeric, /\A\d+\z/ then parse value.to_s when ::String, /\A\d+\z/ then parse value end end |