Esempio n. 1
0
def set_timezone(interp, this, w_datetimezone):
    this.w_datetimezone = w_datetimezone

    timelib.timelib_set_timezone(this.timelib_time, this.w_datetimezone.timezone_info.timelib_timezone)
    timelib.timelib_unixtime2local(this.timelib_time, this.timelib_time.c_sse)

    return this
Esempio n. 2
0
def set_timezone(interp, this, w_datetimezone):
    this.w_datetimezone = w_datetimezone

    timelib.timelib_set_timezone(
        this.timelib_time, this.w_datetimezone.timezone_info.timelib_timezone)
    timelib.timelib_unixtime2local(this.timelib_time, this.timelib_time.c_sse)

    return this
Esempio n. 3
0
def date_timezone_set(interp, w_date, w_datetimezone):
    w_date.timezone = w_datetimezone

    timelib.timelib_set_timezone(w_date.timelib_time,
                                 w_date.timezone.timelib_timezone)
    timelib.timelib_unixtime2local(w_date.timelib_time,
                                   w_date.timelib_time.c_sse)

    return w_date
Esempio n. 4
0
def date_timezone_set(interp, w_date, w_datetimezone):
    w_date.timezone = w_datetimezone

    timelib.timelib_set_timezone(
        w_date.timelib_time, w_date.timezone.timelib_timezone)
    timelib.timelib_unixtime2local(
        w_date.timelib_time, w_date.timelib_time.c_sse)

    return w_date