Beispiel #1
0
def modify(interp, this, string_modifier):

    this.timelib_time = timelib.timelib_time_modify(
        this.timelib_time, string_modifier, this.timezone.timelib_timezone
    )

    return this
Beispiel #2
0
def date_modify(interp, date, string_modifier):
    date.timelib_time, error = timelib.timelib_time_modify(
        date.timelib_time,
        string_modifier,
        date.w_datetimezone.timezone_info.timelib_timezone
    )

    return date
Beispiel #3
0
def modify(interp, this, string_modifier):

    if not string_modifier:
        interp.space.ec.warn("DateTime::modify(): Failed to parse time string () at position 0 (")
        return interp.space.w_False

    this.timelib_time, error = timelib.timelib_time_modify(
        this.timelib_time, string_modifier, this.w_datetimezone.timezone_info.timelib_timezone
    )

    if error:
        interp.space.ec.warn("DateTime::modify(): %s" % error)
        return interp.space.w_False

    return this
Beispiel #4
0
def modify(interp, this, string_modifier):

    if not string_modifier:
        interp.space.ec.warn(
            "DateTime::modify(): Failed to parse time string () at position 0 ("
        )
        return interp.space.w_False

    this.timelib_time, error = timelib.timelib_time_modify(
        this.timelib_time, string_modifier,
        this.w_datetimezone.timezone_info.timelib_timezone)

    if error:
        interp.space.ec.warn("DateTime::modify(): %s" % error)
        return interp.space.w_False

    return this
Beispiel #5
0
def modify(interp, this, string_modifier):

    this.timelib_time = timelib.timelib_time_modify(
        this.timelib_time, string_modifier, this.timezone.timelib_timezone)

    return this
Beispiel #6
0
def date_modify(interp, date, string_modifier):
    date.timelib_time = timelib.timelib_time_modify(
        date.timelib_time, string_modifier, date.timezone.timelib_timezone)

    return date
Beispiel #7
0
def date_modify(interp, date, string_modifier):
    date.timelib_time = timelib.timelib_time_modify(
        date.timelib_time, string_modifier, date.timezone.timelib_timezone
    )

    return date