Logs > Key Concepts > Loggers and Log Viewers > Event Log Viewer > Event Log Viewer Preferences
 
Event Log Viewer Preferences
Event Log Viewer preferences allow you to specify a display format for the time stamp associated with each log entry. When this window appears, a popup legend also appears listing possible values for the Timestamp format field.
 

The default time stamp format is yyyy-MM-dd HH:mm:ss.SSS, where each letter represents a character of a specific time stamp component. Dashes, periods, spaces and other characters are used to separate the elements of the time stamp.
So, as an example, for an event logged at one millisecond before 6:00 p.m. on August 21st, 2007, the default syntax would result in the following time stamp:
2007-08-21 17:59:59.999
The table below lists the elements that can be used to build a time stamp format:
 
 
Letter
Date or Time Component
Presentation
Examples
G
Era designator
Text
AD
Y
Year
Year
2007 (YYYY), 07 (YY)
M
Month in year
Month
August (MMMM), Aug (MMM), 08 (MM)
w
Week in year
Number
27
W
Week in month
Number
2
D
Day in year
Number
189
d
Day in month
Number
10
F
Day of week in month
Number
2
E
Day in week
Text
Tuesday (EEEE), Tue (EEE)
a
Am/pm marker
Text
PM
H
Hour in day (0‑23)
Number
0
k
Hour in day (1‑24)
Number
24
K
Hour in am/pm (0‑11)
Number
0
h
Hour in am/pm (1‑12)
Number
12
m
Minute in hour
Number
30
s
Second in minute
Number
55
S
Millisecond
Number
978
z
Time zone
General time zone
Pacific Standard Time (zzzz), PST (z)
Z
Time zone
RFC 822 time zone
-0800