6 lines
144 B
Ruby
6 lines
144 B
Ruby
|
# return current date with time 00:00:00
|
||
|
def Time.today
|
||
|
t = Time.now
|
||
|
Time.local(t.year, t.month, t.day)
|
||
|
end unless Time.respond_to?(:today)
|