Logo Search packages:      
Sourcecode: icu version File versions

int32_t VTimeZone::getOffset ( uint8_t  era,
int32_t  year,
int32_t  month,
int32_t  day,
uint8_t  dayOfWeek,
int32_t  millis,
int32_t  monthLength,
UErrorCode status 
) const [virtual]

Gets the time zone offset, for current date, modified in case of daylight savings. This is the offset to add *to* UTC to get local time.

Note: Don't call this method. Instead, call the getOffset(UDate...) overload, which returns both the raw and the DST offset for a given time. This method is retained only for backward compatibility.

Parameters:
era The reference date's era
year The reference date's year
month The reference date's month (0-based; 0 is January)
day The reference date's day-in-month (1-based)
dayOfWeek The reference date's day-of-week (1-based; 1 is Sunday)
millis The reference date's milliseconds in day, local standard time
monthLength The length of the given month in days.
status Output param to filled in with a success or an error.
Returns:
The offset in milliseconds to add to GMT to get local time. ICU 3.8

Implements TimeZone.

Definition at line 1152 of file vtzone.cpp.

References TimeZone::getOffset().

                                                                    {
    return tz->getOffset(era, year, month, day, dayOfWeek, millis, monthLength, status);
}


Generated by  Doxygen 1.6.0   Back to index