Class: Git::Heatmap::Hourly

Inherits:
Period
  • Object
show all
Defined in:
lib/git/heatmap/period.rb

Instance Method Summary collapse

Methods inherited from Period

#aggregate, #between, #mktime

Instance Method Details

#key(t, p = 0) ⇒ Object



72
73
74
# File 'lib/git/heatmap/period.rb', line 72

def key(t, p = 0)
	mktime(t.year, t.month, t.day, t.hour) + (3600 * p)
end

#nameObject



68
69
70
# File 'lib/git/heatmap/period.rb', line 68

def name
	"Hours"
end