Mercurial > hgrepos > hgweb.cgi > after5
changeset 74:55a372e76e28 draft
1 day should be 3600*24 secs.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 29 Nov 2012 12:25:55 +0900 |
parents | 8b8cb30b78fa |
children | 360d7144ab8d |
files | after5.rb |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/after5.rb Thu Nov 29 12:24:58 2012 +0900 +++ b/after5.rb Thu Nov 29 12:25:55 2012 +0900 @@ -4,7 +4,7 @@ # Associative Scheduling Table - after5 # (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji<at>gentei.org] # $Id: after5.rb,v 1.19 2012/04/01 11:52:25 yuuji Exp yuuji $ -# Last modified Thu Nov 29 12:24:14 2012 on firestorm +# Last modified Thu Nov 29 12:25:27 2012 on firestorm # See http://www.gentei.org/~yuuji/software/after5/ # このスクリプトはEUCで保存してください。 $hgid = <<_HGID_.split[1..-2].join(" ") @@ -1851,7 +1851,7 @@ (column..column+6).collect{|d| todayp = (day.year==todayy && day.month==todaym && d==todayd) wd=d-column - thisday = sunday+3600*wd + thisday = sunday+3600*24*wd hd = holiday.isHoliday(thisday.year, thisday.month, thisday.day, wd) tdclass['class'] = (hd ? 'holiday' : wname[wd]) @H.element("td", tdclass){