def modify(interp, this, string_modifier): this.timelib_time = timelib.timelib_time_modify( this.timelib_time, string_modifier, this.timezone.timelib_timezone ) return this
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
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
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
def modify(interp, this, string_modifier): this.timelib_time = timelib.timelib_time_modify( this.timelib_time, string_modifier, this.timezone.timelib_timezone) return this
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
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