Logo Search packages:      
Sourcecode: icu version File versions  Download package

int32_t RuleBasedTimeZone::getRawOffset ( void   )  const [virtual]

Returns the TimeZone's raw GMT offset (i.e., the number of milliseconds to add to GMT to get local time, before taking daylight savings time into account).

The TimeZone's raw GMT offset. ICU 3.8

Implements TimeZone.

Definition at line 459 of file rbtz.cpp.

References FALSE, getOffset(), U_MILLIS_PER_SECOND, and U_ZERO_ERROR.

    // Note: This implementation returns standard GMT offset
    // as of current time.
    UErrorCode status = U_ZERO_ERROR;
    int32_t raw, dst;
    getOffset(uprv_getUTCtime() * U_MILLIS_PER_SECOND,
        FALSE, raw, dst, status);
    return raw;

Generated by  Doxygen 1.6.0   Back to index