Configurable time stamp placeholders for e-mails

In addition to the GMT format time stamp, you can include user-defined, user-configurable time stamps in your e-mail message body, (when creating or editing a notification).

The Axeda® Platform reserves the following symbols (ASCII letters) for use in configurable time stamp placeholders:

 

Symbol

Meaning

Presentation

Example

y

year

(Number)

2002

M

month in year

(Text & Number)

February & 02

d

day in month

(Number)

15

h

hour in am/pm (1~12)

(Number)

12

H

hour in day (0~23)

(Number)

0

m

minute in hour

(Number)

30

s

second in minute

(Number)

55

S

millisecond

(Number)

978

E

day in week

(Text)

Tuesday

D

day in year

(Number)

189

F

day of week in month

(Number)

2 (2nd Wed in July)

w

week in year

(Number)

27

W

week in month

(Number)

2

a

am/pm marker

(Text)

PM

k

hour in day (1~24)

(Number)

24

K

hour in am/pm (0~11)

(Number)

0

z

time zone

(Text)

Pacific Standard Time

'

escape for text

(Delimiter)

 

''

single quote

(Literal)

'

For the presentation, the number and pattern of the letters you configure in the e-mail body determines how the data appears in the resulting e-mail message.

o        If the presentation is as text, using four or more letters will show the resulting value in its full form (for example, "EEEEEE" may show Monday); using less than four letters will show the value in its short or abbreviated form, if one exists (for example, "EEE" may show Mon).

o        If the presentation is as numbers, using the minimum number of digits will show the resulting value, where shorter numbers are padded with zeros to appear in the configured format. For example, if you use a placeholder of "yy", the yy is replaced with 02, a zero-padded, two-digit year.

o        If the presentation is as text and numbers, using three or more characters shows the resulting value as text; otherwise, the resulting value is shown as a number. For example, is you use "MM", value may appear as 05 for the month of May; if you use "MMM", the value may appear as May in runtime.

Some examples

Format Pattern

Result

"yyyy.MM.dd 'at' hh:mm:ss z"

2002.02.01 at 15:08:56 EST

"EEE, MM d, ''yy"

Wed, Feb 10, '02

"h:mm a"

12:08 PM

"hh 'o''clock' a, zzzz"

12 o'clock PM, Eastern Standard Time

"K:mm a, z"

0:00 PM, EST

"yyyyy.MMMMM.dd hh:mm aaa"

2002.January.22 12:08 PM

 

See Also