lib/glue/time.rb in og-0.7.0 vs lib/glue/time.rb in og-0.8.0
- old
+ new
@@ -4,11 +4,11 @@
# (c) 2004 Navel, all rights reserved.
# $Id: time.rb 167 2004-11-23 14:03:10Z gmosx $
require "time.rb"
-module G;
+module N;
# = Time
#
# General time utilities collection
#
@@ -75,10 +75,10 @@
# returns true only if day of time is included in the
# range (stime..etime). Only year days are checked.
#
def self.time_in_day_range(time, stime=ZERO, etime=NEVER)
if (etime <= stime)
- $log.debug "Invalid end time (#{etime} < #{stime})" if $DBG
+ Logger.debug "Invalid end time (#{etime} < #{stime})" if $DBG
etime = NEVER
end
stime = start_of_day(stime)
etime = end_of_day(etime)