2.2.3.1 File and Subdirectory Name Formatting

If the plaPattern bit is set in the AutoPathFormat, the PLA Protocol MUST append a pattern to the file name or subdirectory name. The following table details the meaning of each pattern.

Pattern

Description

D

Day of the year.

DDD

Day of the year with leading zeros, if applicable.

d

Day of the month.

dd

Day of the month with a leading zero, if applicable.

ddd

The abbreviated name of the weekday, for example, "Tue" for Tuesday.

dddd

Full name of the weekday.

M

Month.

MM

Month with leading zero, if applicable.

MMM

The abbreviated name of the month, for example, "Jan" for January.

MMMM

Full name of the month.

y

Year without the century.

yy

Year without the century but with a leading zero, if applicable.

yyyy

Year with the century.

h

Hour in a 12-hour clock.

hh

Hour in a 12-hour clock with a leading zero, if applicable.

H

Hour in a 24-hour clock.

HH

Hour in a 24-hour clock with a leading zero, if applicable.

m

Minute.

mm

Minute with a leading zero, if applicable.

s

Second.

ss

Second with a leading zero, if applicable.

t

The first character of the AM/PM designator.

tt

The AM/PM designator.

z

Time zone offset.

zz

Time zone offset with a leading zero, if applicable.

N

Serial number. The number of leading zeros is defined by the number of characters; for example, if the serial number is 32 and the pattern is NNN, the serial number used is 032.

\c

Escaped character where "c" is any character. Unrecognized characters that are not "escaped", excluding white space, will result in an error.

For example, the pattern "MMMM d, yyyy \a\t h:mmTt" could yield "January 31, 2005 at 4:20AM". If the file name is MyFile, the decorated file name would be "MyFile January 31, 2005 at 4:20AM".<6>