Java Calendar Create getCalendarGMT()

Here you can find the source of getCalendarGMT()

Description

get Calendar GMT

License

Open Source License

Declaration

public static Calendar getCalendarGMT() 

Method Source Code


//package com.java2s;
/*/* w  w  w  . ja  v a 2  s .  co m*/
*
* Copyright 2015 IK4-Tekniker All Rights Reserved
*
* This file is part of Health Questionnaire SE at FISTAR https://www.fi-star.eu/  
*
* Health Questionnaire SE is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* Health Questionnaire SE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
* General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Health Questionnaire SE. If not, see http://www.gnu.org/licenses/.
*
* For those usages not covered by this license please contact with
* patricia.casla at tekniker dot es
*
* Author: Ignacio Lazaro Llorente
*/

import java.util.Calendar;

import java.util.TimeZone;

public class Main {
    public static Calendar getCalendarGMT() {
        Calendar c = Calendar.getInstance();
        c.setTimeZone(TimeZone.getTimeZone("GMT"));
        return c;
    }
}

Related

  1. getCalendarForNextRun( GregorianCalendar startTime, int targetDay, int targetHour)
  2. getCalendarForSchedule(Calendar cal)
  3. getCalendarForTime(final long timeInMilliseconds)
  4. getCalendarFromDates(Date date, Date hourMinuteMillisseconds)
  5. getCalendarFromSystemTimeInMillis(long date)
  6. getCalendarInstance()
  7. getCalendarInstance()
  8. getCalendarOf(int slot)
  9. getCalendarRange(Calendar date, int i)