Code example for TimeZone

Methods: getOffset

0
	 
	public VLDate(int year, int mon, int day, int hours, int mins, int seconds, TimeZone tz) {
		_ticks = VLDate.getTicksFromYear(year, mon, day);
		_ticks += hours * kTicksPerHour + mins * kTicksPerMinute + seconds * kTicksPerSecond;
		if(tz != null) {
			int offsetMS = tz.getOffset((_ticks - kTicksUntil1970) / kTicksPerMillisecond);
			_ticks -= offsetMS * kTicksPerMillisecond;
		} 
	} 
	 
	public VLDate(int year, int mon, int day, TimeZone tz) {
		_ticks = VLDate.getTicksFromYear(year, mon, day);
		if(tz != null) {
			int offsetMS = tz.getOffset((_ticks - kTicksUntil1970) / kTicksPerMillisecond);
			_ticks -= offsetMS * kTicksPerMillisecond;
		} 
	} 
	 
	public VLDate(Date other) {
		_ticks = (long)other.getTime()*kTicksPerMillisecond + kTicksUntil1970;
Connect your IDE to all the code out there  Get Codota for Java