Method: When::TimeStandard::UniversalTime#from_time_object
- Defined in:
- lib/when_exe/timestandard.rb
#from_time_object(time) ⇒ Numeric
Time オブジェクトを universal time に変換する
525 526 527 528 529 |
# File 'lib/when_exe/timestandard.rb', line 525 def from_time_object(time) result = time.to_f * When::TM::Duration::SECOND return result if When::TimeStandard._is_systemtime_universal? from_dynamical_time(result + DeltaT0) end |