Java Date UTC Parse getUTCDate()

Here you can find the source of getUTCDate()

Description

get UTC Date

License

Open Source License

Declaration

public static Date getUTCDate() 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.TimeZone;

public class Main {
    public static Date getUTCDate() {
        Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
        return c.getTime();
    }/*from   w ww. ja  v a  2  s . c om*/
}

Related

  1. getDateTimeUTC(int year, int month, int day, int hour, int minute, int second)
  2. getLocalTimeFromUTC( String localTimeZoneId, java.util.Date utcTimestamp)
  3. getUTC(java.util.Date siteTimestamp)
  4. getUTCDate()
  5. getUTCDate()
  6. getUTCDate(Date date)
  7. getUtcDate(Date date)
  8. getUtcDate(final int year, final int month, final int day)
  9. getUTCDate(int year, int month, int date, int h, int m, int s, int milli)