Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/rscm/time_ext.rb,
lib/rscm/scm/star_team.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.epochObject



3
4
5
# File 'lib/rscm/time_ext.rb', line 3

def epoch
  Time.utc(1972)
end

.infinityObject



7
8
9
# File 'lib/rscm/time_ext.rb', line 7

def infinity
  Time.utc(2036)
end

Instance Method Details

#to_rfc2822Object



8
9
10
# File 'lib/rscm/scm/star_team.rb', line 8

def to_rfc2822
  utc.strftime("%a, %d %b %Y %H:%M:%S +0000")
end