Module: MastercoinWallet::Util
- Included in:
- MainWindow
- Defined in:
- lib/mastercoin-wallet/util.rb
Instance Method Summary collapse
Instance Method Details
#coin_name(currency_id) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/mastercoin-wallet/util.rb', line 8 def coin_name(currency_id) if currency_id.to_s == "1" "MSC" else "Test MSC" end end |
#get_date(date) ⇒ Object
3 4 5 6 |
# File 'lib/mastercoin-wallet/util.rb', line 3 def get_date(date) time = Time.strptime(date, "%Y-%m-%dT%H:%M:%S.000Z").strftime("%d-%m-%Y %H:%M:%S") #Qt::Date.new(time.strftime("%Y").to_i, time.strftime("%m").to_i, time.strftime("%d").to_i) end |