░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/fugit-1.8.1/lib/fugit
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: misc.rb
# frozen_string_literal: true module Fugit DAY_S = (24 * 3600).freeze YEAR_S = (365 * DAY_S).freeze class << self def isostamp(show_date, show_time, show_usec, time) t = time || Time.now s = StringIO.new s << t.strftime('%Y-%m-%d') if show_date s << t.strftime('T%H:%M:%S') if show_time s << sprintf('.%06d', t.usec) if show_time && show_usec s << 'Z' if show_time && time.utc? s.string end def time_to_s(t) isostamp(true, true, false, t) end def time_to_plain_s(t=Time.now, z=true) t.strftime('%Y-%m-%d %H:%M:%S') + (z && t.utc? ? ' Z' : '') end def time_to_zone_s(t=Time.now) t.strftime('%Y-%m-%d %H:%M:%S %Z %z') end end end
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 at.rb
RB
231 B
2023-09-24 03:48
EDIT
📄 cron.rb
RB
21.5 KB
2023-09-24 03:48
EDIT
📄 duration.rb
RB
9.3 KB
2023-09-24 03:48
EDIT
📄 misc.rb
RB
742 B
2023-09-24 03:48
EDIT
📄 nat.rb
RB
18.6 KB
2023-09-24 03:48
EDIT
📄 parse.rb
RB
1.5 KB
2023-09-24 03:48
EDIT