Java TimeZone Add baseFor(TimeZone tz)

Here you can find the source of baseFor(TimeZone tz)

Description

base For

License

Open Source License

Declaration

private static Date baseFor(TimeZone tz) 

Method Source Code


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

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

public class Main {
    private static Date baseFor(TimeZone tz) {

        Calendar c = Calendar.getInstance(tz);
        c.clear();/*www . jav a 2 s  .  c  om*/
        c.set(1899, 11, 30, 0, 0, 0);
        return c.getTime();
    }
}

Related

  1. addTimeZone(String id, double off)
  2. adjustTimeToDefaultTimezone(long time)
  3. cal(TimeZone tz)
  4. isAfter(int month1, int day1, int year1, int hour1, int minute1, int amPm1, int month2, int day2, int year2, int hour2, int minute2, int amPm2, TimeZone timeZone, Locale locale)
  5. isFuture(int month, int year, TimeZone timeZone, Locale locale)
  6. millisFromEpochToHourId(long millis, TimeZone tz)