Show More
Commit Description:
refactor to partials...
Commit Description:
refactor to partials git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@62 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/helpers/main_helper.rb | 13 lines | 219 B | text/x-ruby | RubyLexer |
module MainHelper
def format_short_time(time)
now = Time.now
st = ''
if (time.yday != now.yday) or
(time.year != now.year)
st = time.strftime("%x ")
end
st + time.strftime("%X")
end
end