User Tools

Site Tools


time_control_codes

Time Control Codes

Auto Book allows the use of time control codes in Extraction Schemes (in the Fixed Text fields of the Extraction Wizard) and in the default values fields of Templates. When the Extraction Scheme is processed or the Template opened, the current date and/or time is then automatically inserted. Use one of the following two control codes:

<Time>Will be replaced with the current time and date in the system locale format (in the Extraction Wizard, click the Test button if you're unsure what this format looks like on your computer).
<Time.Format>Will be replaced with the current date and/or time in a user-defined format.

Date/Time Formats

To define the format when using the <Time.Format> command, refer to the table below. Simple replace “Format” in the command with the components you need plus any punctuation.

For example, <Time.yyyy-MM-dd> will be replaced with today's date in ISO format (e.g. 2021-12-31).

d Day of the month without leading zero (1 - 31)
dd Day of the month with leading zero (01 – 31)
ddd Abbreviated name for the day of the week (e.g. Mon) in the current user's language
dddd Full name for the day of the week (e.g. Monday) in the current user's language
M Month without leading zero (1 – 12)
MM Month with leading zero (01 – 12)
MMM Abbreviated month name (e.g. Jan) in the current user's language
MMMM Full month name (e.g. January) in the current user's language
y Year without century, without leading zero (0 – 99)
yy Year without century, with leading zero (00 - 99)
yyyy Year with century. For example: 2005
gg Period/era string for the current user's locale (blank if none)
hHours without leading zero; 12-hour format (1 - 12)
hh Hours with leading zero; 12-hour format (01 – 12)
H Hours without leading zero; 24-hour format (0 - 23)
HH Hours with leading zero; 24-hour format (00– 23)
m Minutes without leading zero (0 – 59)
mm Minutes with leading zero (00 – 59)
s Seconds without leading zero (0 – 59)
ss Seconds with leading zero (00 – 59)
t Single character time marker, such as A or P (depends on locale)
tt Multi-character time marker, such as AM or PM (depends on locale)
time_control_codes.txt · Last modified: 2022/01/01 05:55 by autobook