Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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