Class: Fonecal::Util
- Inherits:
-
Object
- Object
- Fonecal::Util
- Defined in:
- lib/fonecal/util.rb
Class Method Summary collapse
Class Method Details
.dtToUTC(dt) ⇒ Object
10 11 12 13 |
# 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) ⇒ Object
6 7 8 |
# File 'lib/fonecal/util.rb', line 6 def self.getRootUrl(site) site.match('.+\.com').to_s end |