What time formats are supported by the information center and how to configure these formats

The information center supports the following five time formats.
-boot: indicates the relative time, a period of time since system start. The format is xxxxxx.yyyyyy. xxxxxx is the higher-order 32 bits of the milliseconds elapsed since system start; yyyyyy is the lower-order 32 bits of the milliseconds elapsed since system start.
-date: indicates the current date and time of the system, in the format of mm dd yyyy hh:mm:ss.
-format-date: indicates that the timestamp is expressed in YYYY-MM-DD hh:mm:ss format.
-none: indicates that the output information does not contain the timestamp.
-short-date: indicates the short date. This timestamp differs from date in that the year is not displayed.
The time format is set based on the information type. The time stamp format of logs generated by the device is the same as that of logs transmitted on all channels. You can set the time stamp format of logs using the following command.
system-view
[HUAWEI] info-center timestamp log ?
boot Information time stamp of relative time type
date Information time stamp of date type
format-date Information time stamp of date another type
none None information time stamp
short-date Information time stamp of short date type: (MM:DD)
You can set the time format as service requires.

Scroll to top