Java Calendar Create getCalendar()

Here you can find the source of getCalendar()

Description

get Calendar

License

Open Source License

Declaration

private static Calendar getCalendar() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    private static int zoneOffset;
    private static Calendar cachedCalendar;

    private static Calendar getCalendar() {
        if (cachedCalendar == null) {
            cachedCalendar = Calendar.getInstance();
            zoneOffset = cachedCalendar.get(Calendar.ZONE_OFFSET);
        }/*from w  ww . ja  va 2 s .  com*/
        return cachedCalendar;
    }
}

Related

  1. getCalendar()
  2. getCalendar()
  3. getCalendar()
  4. getCalendar()
  5. getCalendar()
  6. getCalendar()
  7. getCalendar()
  8. getCalendar()
  9. getCalendar()