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, RubyDateFormatter.FieldType type)
    • format

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

      static void outputLong(ByteList out, int length, long value)
    • longSize

      static int longSize(long number)
    • longSizeInner

      static int longSizeInner(long number)
    • formatNumber

      static void formatNumber(ByteList out, long value, int width, char padder)
    • formatSignedNumber

      static void formatSignedNumber(ByteList out, long value, long second, int width, char padder)
    • padding

      private static void padding(ByteList out, int len, int width, char padder)
    • toString

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