Class RubyTimeOutputFormatter

java.lang.Object
org.jruby.util.RubyDateFormatter.Token
org.jruby.util.RubyTimeOutputFormatter

public class RubyTimeOutputFormatter extends RubyDateFormatter.Token
Support for GNU-C output formatters, see: http://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
  • Field Details

  • Constructor Details

    • RubyTimeOutputFormatter

      public RubyTimeOutputFormatter(ByteList flags, int width)
  • Method Details

    • getWidth

      public int getWidth(int defaultWidth)
    • getPadder

      public char getPadder(char defaultPadder)
    • format

      public void format(ByteList out, long value, org.jruby.util.RubyDateFormatter.FieldType type)
    • format

      public void format(ByteList out, CharSequence sequence)
    • toString

      public String toString()
      Overrides:
      toString in class RubyDateFormatter.Token