class Fonecal::Util

Public Class Methods

dtToUTC(dt) click to toggle source
# File lib/fonecal/util.rb, line 10
def self.dtToUTC(dt)
  #dt.with_offset(0).strftime("%Y%m%dT%H%M%S")
  dt.utc.strftime("%Y%m%dT%H%M%S")
end
getRootUrl(site) click to toggle source
# File lib/fonecal/util.rb, line 6
def self.getRootUrl(site)
  site.match('.+\.com').to_s
end