({{, (RefLink[TimeFormat, paclet:ref/TimeFormat])
is an option that determines the time formatting that is used when formatting a (RefLink[TimeObject, paclet:ref/TimeObject]) using (RefLink[TextString, paclet:ref/TextString]). }})

OpenersNotesSection(Spacer1)Details

(RefLink[TimeFormat, paclet:ref/TimeFormat]) is set to (RefLink[Automatic, paclet:ref/Automatic]) by default, which uses 24-hour time.

(RefLink[TimeFormat, paclet:ref/TimeFormat]) can be set to any format specification supported by (RefLink[DateString, paclet:ref/DateString]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

By default, (RefLink[TextString, paclet:ref/TextString]) shows time in the form hour:minute:second:

TextString[TimeObject[]]

Use the option (RefLink[TimeFormat, paclet:ref/TimeFormat]) to change the format:

TextString[TimeObject[],TimeFormat->{"Hour",":","Minute"}]

Specify custom markup:

TextString[TimeObject[],TimeFormat->{"Hour","h","Minute","m","Second","s"}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TimeObject, paclet:ref/TimeObject])  ▪  (RefLink[TextString, paclet:ref/TextString])  ▪  (RefLink[DateFormat, paclet:ref/DateFormat])  ▪  (RefLink[DateString, paclet:ref/DateString])}})}})