TimeZone.adjustTime

Finds an interval within tz that corresponds to the given time, possibly adjusting time if required to fit into an interval. The meaning of time depends on type. This function is similar to g_time_zone_find_interval(), with the difference that it always succeeds (by making the adjustments described below). In any of the cases where g_time_zone_find_interval() succeeds then this function returns the same value, without modifying time. This function may, however, modify time in order to deal with non-existent times. If the non-existent local time of 02:30 were requested on March 13th 2010 in Toronto then this function would adjust time to be 03:00 and return the interval containing the adjusted time. Since 2.26

class TimeZone
int
adjustTime
(,
ref long time
)

Parameters

type GTimeType

the GTimeType of time

time long

a pointer to a number of seconds since January 1, 1970

Return Value

Type: int

the interval containing time, never -1

Meta