bvggrabber.utils.format.dateformat(dt)[source]¶ Formats a datetime.datetime object as dd.mm.yyyy Parameters:dt (datetime.datetime) – The datetime.datetime object to format Returns:A formatted string Return type:str bvggrabber.utils.format.fullformat(dt)[source]¶ Formats a datetime.datetime object as YYYY-MM-DD HH:MM:SS Parameters:dt (datetime.datetime) – The datetime.datetime object to format Returns:A formatted string Return type:str bvggrabber.utils.format.timeformat(dt)[source]¶ Formats a datetime.datetime object as HH:MM Parameters:dt (datetime.datetime) – The datetime.datetime object to format Returns:A formatted string Return type:str
Formats a datetime.datetime object as dd.mm.yyyy
Formats a datetime.datetime object as YYYY-MM-DD HH:MM:SS
Formats a datetime.datetime object as HH:MM
bvggrabber.utils.format.int2bin(i, length=8)[source]¶ Returns the bit representation of the given integer with a minimum length of length. E.g. int2bin(109, 7) == '1101101' and int2bin(109, 8) == '01101101'. Parameters: i (int) – The integer to format length (int) – The minimum length of the output string. The string is zero-padded on the left. Returns:The bit representation of the given int Return type:string
Returns the bit representation of the given integer with a minimum length of length. E.g. int2bin(109, 7) == '1101101' and int2bin(109, 8) == '01101101'.
The bit representation of the given int
string
Utils
API
Enter search terms or a module, class or function name.