Java Calendar Add appendEra(StringBuffer sb, Calendar cal)

Here you can find the source of appendEra(StringBuffer sb, Calendar cal)

Description

append Era

License

Open Source License

Declaration

private static void appendEra(StringBuffer sb, Calendar cal) 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class Main {
    private static void appendEra(StringBuffer sb, Calendar cal) {
        if (cal.get(Calendar.ERA) == GregorianCalendar.BC) {
            sb.append(" BC");
        }/*from w  w w . j  a  v a  2  s  .c  om*/
    }
}

Related

  1. addWeekdays(Calendar cal, int days)
  2. addWorkdays(final Calendar calendar, final int dauer)
  3. appendDate(StringBuffer buf, Calendar cal)
  4. appendDate(StringBuffer dateString, Calendar calendar)
  5. appendDate(StringBuffer sb, Calendar cal)
  6. appendTime(Calendar value, StringBuffer dateString)
  7. appendTimeZone(Calendar calendar, StringBuffer dateString)
  8. cloneAndAdd(Calendar source, int field, int amount)
  9. getDayOfAddDay(final Calendar calendar, final int day)