public abstract getOffset ( int arg0, int arg1, int arg2, int arg3, int arg4, int arg5 ) : int | ||
arg0 | int | |
arg1 | int | |
arg2 | int | |
arg3 | int | |
arg4 | int | |
arg5 | int | |
리턴 | int |
private Properties initializeDefaults() { Properties defaults = new Properties(); java.util.TimeZone tz = java.util.Calendar.getInstance().getTimeZone(); if (tz != null) { defaults.setProperty(AVKey.INITIAL_LONGITUDE, System.Double.ToString( Angle.fromDegrees(180.0 * tz.getOffset(System.currentTimeMillis()) / (12.0 * 3.6e6)).degrees)); } return(defaults); }
/// <summary> /// UTCs the offset. /// If Daylight Saving Time is in effect at the specified date, /// the offset value is adjusted with the amount of daylight saving. /// </summary> /// <param name="dateTime">The date time.</param> /// <returns></returns> public int UtcOffset(DateTime dateTime) { int utcOffset = timeZone.getOffset(ToDate(dateTime).getTime()); return(utcOffset); }