# File rice/datetime.rb, line 55 def DateTime.formatTime(format, t, includeUsecs) if !t.gmt? # Convert to UTC (GMT) if necessary t = t.dup().gmtime() end str = t.strftime(format) if includeUsecs && t.usec != 0 str << ",#{t.usec}" end return str end