Method: Qt::DateTime#to_time

Defined in:
lib/Qt/qtruby4.rb

#to_timeObject



705
706
707
708
709
710
711
712
713
# File 'lib/Qt/qtruby4.rb', line 705

def to_time
  if timeSpec == Qt::UTC
    return ::Time.utc(  date.year, date.month, date.day,
              time.hour, time.minute, time.second, time.msec * 1000 )
  else
    return ::Time.local(  date.year, date.month, date.day,
                time.hour, time.minute, time.second, time.msec * 1000 )
  end
end