class SiSU_Info_Date::InfoDate

Attributes

dt[RW]
t[RW]

Public Class Methods

new() click to toggle source
# File lib/sisu/se_date.rb, line 66
def initialize
  @dt,@t=Date.today.to_s,Time.now
end

Public Instance Methods

month() click to toggle source
# File lib/sisu/se_date.rb, line 73
def month
  "#{@t.year}#{@t.month}"
end
monthonly() click to toggle source
# File lib/sisu/se_date.rb, line 82
def monthonly
  @t.month
end
week() click to toggle source
# File lib/sisu/se_date.rb, line 69
def week
  w=@t.strftime('%W')
  "#{@t.year}w#{w}"
end
weekonly() click to toggle source
# File lib/sisu/se_date.rb, line 79
def weekonly
  @t.strftime('%W')
end
year() click to toggle source
# File lib/sisu/se_date.rb, line 76
def year
  @t.year
end
year_static() click to toggle source
# File lib/sisu/se_date.rb, line 85
def year_static
  YEAR
end