Function | get_libc | Returns an accessor to C library. |
Function | calculate_interval | Get the interval type value for a certain INTERVALTYPE_* constant. |
Function | get_weekday_start | Returns the dateutil.relativedelta.weekday based on the current locale. |
Function | payment_value_colorize | A helper method for payment value columns used to set different |
Function | get_country_states | Undocumented |
Function | _split_parts | Undocumented |
Function | sort_sellable_code | Undocumented |
Function | quantize | Quantities a decimal according to the current settings. |
Parameters | interval_type | |
intervals | ||
Returns | >>> calculate_interval(INTERVALTYPE_DAY, 5) 5 >>> calculate_interval(INTERVALTYPE_MONTH, 3) 90 >>> calculate_interval(INTERVALTYPE_YEAR, 10) 3650 |
Returns | a dateutil.realtivedelta.weekday instance |