Scheduling, running, and managing designs : Using a date-and-time expression in a document or version name : Creating a custom time format
 
Creating a custom time format
You can create custom time formats. The exact output depends on the locale. iHub formats times according to specifications in the locale map for Management Console. Table 5‑8 lists the time format symbols that you use to construct a custom time format and the expression to which each variable evaluates in a document. Examples and results that have a document file-name extension are document names. Examples and results without a document file-name extension are version names. The results are for the English (US) locale.
Table 5‑8 Time format variables
Symbol
Description
Example
Result
h
Returns the hour of the day without the leading zero (0‑23).
Hour {h}.<document extension>
Hour 9.<document extension>
hh
Returns the hour of the day with the leading zero (00‑23).
Hour {hh}.<document extension>
Hour 09.<document extension>
n
Returns the minute without the leading zero (0‑59).
Minute {n}.<document extension>
Minute 5.<document extension>
nn
Returns the minute with the leading zero (00‑59).
Minute {nn}.<document extension>
Minute 05.<document extension>
s
Returns the second without the leading zero (0‑59).
Second {s}.<document extension>
Second 1.<document extension>
ss
Returns the second with the leading zero (00‑59).
Second {ss}.<document extension>
Second 01.<document extension>
tttt
This setting uses formats that are in the Management Console’s locale map.
{tttt}
8:45:00 PM
AM/PM
Returns AM or am for any hour before noon and PM or pm for any hour after noon. This variable is case‑sensitive.
{hh:nn:ss am/pm}
08:45:03 pm
A/P or a/p
Returns A or a for any hour before noon and P or p for any hour after noon. This variable is case-sensitive.
{h:n:s a/p}
8:45:3 p
AMPM
The default format is AMPM. This setting uses formats from the Management Console locale map.
{h:n:s AMPM}
8:45:3 PM
iHub returns times in 24‑hour format unless you use an a.m. or p.m. format symbol. The symbol for minute is n. The symbol for month is m.