Top "Format" questions

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

Inserting the same value multiple times when formatting a string

I have a string of this form s='arbit' string='%s hello world %s hello world %s' %(s,s,…

python string format
How to format current time using a yyyyMMddHHmmss format?

I'm trying to format the current time using this format yyyyMMddHHmmss. t := time.Now() fmt.Println(t.Format("yyyyMMddHHmmss")) That …

time go format timestamp
Brackets.io: Is there a way to auto indent / format <html>

I am new to Brackets.io and thought I saw a shortcut key to auto indent/format HTML, however I …

format adobe-brackets auto-indent
Difference between java HH:mm and hh:mm on SimpleDateFormat

Whats the difference between kk:mm, HH:mm and hh:mm formats ?? SimpleDateFormat broken = new SimpleDateFormat("kk:mm:ss"); broken.…

java date format
fast way to copy formatting in excel

I have two bits of code. First a standard copy paste from cell A to cell B Sheets(sheet_).Cells(…

vba copy format rtf
print spaces with String.format()

how I can rewrite this: for (int i = 0; i < numberOfSpaces; i++) { System.out.print(" "); } using String.format()? PS I'm …

java string format
PHP Function Comments

Just a quick question: I've seen that some PHP functions are commented at the top, using a format that is …

php function comments format phpdoc
Format file size as MB, GB, etc

I need to display a file size as a string using sensible units. For example, 1L ==> "1 B"; 1024L ==> "1 …

java string format numbers
How to convert String to Date without knowing the format?

I have a problem. I am trying to convert some strings to date, and I don't know the format the …

java date format
How to pad a string to a fixed length with spaces in Python?

I'm sure this is covered in plenty of places, but I don't know the exact name of the action I'm …

python string format