vendredi 18 août 2017

Convert Time.zone.now to number OLE

I need convert the DateTime to OLE, Actually I have this code

  def self.convert_time(t=42941.6102054745)
    Time.at((t - 25569) * 86400).utc
  end

but this converts to DateTime now I want this solution :

def self.date_time_ole(dt= Time.zone.now)
# her convert to number ole from datetime
end

could you please help me ?

Aucun commentaire:

Enregistrer un commentaire