TimeFormat
✖
TimeFormat
✖
is an option that determines the time formatting that is used when formatting a TimeObject using TextString.
Details

- TimeFormat is set to Automatic by default, which uses 24-hour time.
- TimeFormat can be set to any format specification supported by DateString.
Examples
Basic Examples (2)Summary of the most common use cases
By default, TextString shows time in the form hour:minute:second:
In[1]:=1

✖
https://wolfram.com/xid/0j41vpn2-d5rw93
Out[1]=1

Use the option TimeFormat to change the format:
In[2]:=2

✖
https://wolfram.com/xid/0j41vpn2-f6uyv8
Out[2]=2

In[1]:=1

✖
https://wolfram.com/xid/0j41vpn2-mwaxxy
Out[1]=1

Wolfram Research (2014), TimeFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeFormat.html.
✖
Wolfram Research (2014), TimeFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeFormat.html.
Text
Wolfram Research (2014), TimeFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeFormat.html.
✖
Wolfram Research (2014), TimeFormat, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeFormat.html.
CMS
Wolfram Language. 2014. "TimeFormat." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeFormat.html.
✖
Wolfram Language. 2014. "TimeFormat." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeFormat.html.
APA
Wolfram Language. (2014). TimeFormat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeFormat.html
✖
Wolfram Language. (2014). TimeFormat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeFormat.html
BibTeX
✖
@misc{reference.wolfram_2025_timeformat, author="Wolfram Research", title="{TimeFormat}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/TimeFormat.html}", note=[Accessed: 25-April-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_timeformat, organization={Wolfram Research}, title={TimeFormat}, year={2014}, url={https://reference.wolfram.com/language/ref/TimeFormat.html}, note=[Accessed: 25-April-2025
]}