Time Format in REST API Message Audit Logs
search cancel

Time Format in REST API Message Audit Logs

book

Article ID: 406286

calendar_today

Updated On:

Products

Messaging Gateway

Issue/Introduction

What is the time format returned by SMG when querying Message Audit Logs using REST API?

Environment

Symantec Messaging Gateway 10.9.X

Resolution

Time Format: UNIX Epoch Time in Milliseconds

The REST API returns time values in UNIX Epoch format, which represents the number of milliseconds that have passed since January 1, 1970, 00:00:00 UTC (the "epoch").

Example:

"acceptTime": 1754308198000

In this example, the field "acceptTime" contains the value 1754308198000. This is the number of milliseconds since the UNIX epoch.

Converting to Human-Readable Time

To convert this timestamp to a human-readable format in your local time zone, follow these steps:

  1. Divide the value by 1,000 to convert milliseconds to seconds.

  2. Use a date-time conversion tool or programming language to translate that into a date and time.

Example Conversion

 
UNIX timestamp (ms): 1754308198000
Step 1: Convert to seconds: 1754308198000 / 1000 = 1754308198
Step 2: Convert 1754308198 to date (in UTC): Wednesday, August 6, 2025 10:29:58 AM UTC