Class: Splicer::DnsMadeEasy::Time

Inherits:
Time
  • Object
show all
Defined in:
lib/splicer/dns_made_easy/time.rb

Constant Summary collapse

DAYS =
['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
MONTHS =
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']

Instance Method Summary collapse

Instance Method Details

#to_date_headerObject



8
9
10
# File 'lib/splicer/dns_made_easy/time.rb', line 8

def to_date_header
  self.utc.strftime("#{DAYS[self.utc.wday]}, %d #{MONTHS[self.utc.month - 1]} %Y %H:%M:%S GMT")
end