예제 #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
예제 #2
0
파일: funcs.py 프로젝트: youaani/hippyvm
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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #7
0
파일: funcs.py 프로젝트: LewisGet/hippyvm
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