# File lib/rufus/scheduler/zotime.rb, line 460 def strfz(code) return @zone.name if code == '%/Z' per = @zone.period_for_utc(utc) return per.abbreviation.to_s if code == '%Z' off = per.utc_total_offset # sn = off < 0 ? '-' : '+'; off = off.abs hr = off / 3600 mn = (off % 3600) / 60 sc = 0 fmt = if code == '%z' "%s%02d%02d" elsif code == '%:z' "%s%02d:%02d" else "%s%02d:%02d:%02d" end fmt % [ sn, hr, mn, sc ] end