Top "Format" questions

It may refer to text formatting, content format, file format, document file format, etc.

Format timedelta to string

I'm having trouble formatting a datetime.timedelta object. Here's what I'm trying to do: I have a list of objects …

python string datetime format timedelta
How to format a Java string with leading zero?

Here is the String, for example: "Apple" and I would like to add zero to fill in 8 chars: "000Apple" How …

java string formatting format
Correct format specifier to print pointer or address?

Which format specifier should I be using to print the address of a variable? I am confused between the below …

c pointers format memory-address
MySQL date formats - difficulty Inserting a date

I am trying to further a question I asked yesterday where I wanted to know how to query a date …

mysql date insert format
How to display hexadecimal numbers in C?

I have a list of numbers as below: 0, 16, 32, 48 ... I need to output those numbers in hexadecimal as: 0000,0010,0020,0030,0040 ... I have tried …

c format integer printf hex
Oracle SQL - DATE greater than statement

As the title says, I want to find a way to check which of my data sets are past 6 months …

sql oracle date format
Python TypeError: not enough arguments for format string

Here's the output. These are utf-8 strings I believe... some of these can be NoneType but it fails immediately, before …

python string format typeerror
How to print a string at a fixed width?

I have this code (printing the occurrence of the all permutations in a string) def splitter(str): for i in …

python python-3.x python-2.7 format
Formatting a double to two decimal places

I have been trying to make the answer this prints out to be to two decimal places. All the math …

c# format double
What does this format means T00:00:00.000Z?

Can someone, please, explain this type of format in javascript T00:00:00.000Z And how to parse it?

javascript time timezone timestamp format