Description
This API call retrieves the current server time in both local time and Coordinated Universal Time (UTC). It provides two key pieces of information: the server's local time and the server time in UTC format.
The API call is executed without expecting any input parameters.
-
Upon execution, it returns two time values:
ServerTime: Represents the current server time in the local time zone of the server.
ServerTimeUTC: Represents the current server time in UTC.
The output is solely dependent on the time of the server at the moment the API call is made.
There are no conditional statements or branching logic that influence the response; it is a straightforward retrieval of the server's current time.
Request Parameters
# |
Name |
Type |
Required |
Example |
Description |
Request body
Response
Result Set
# |
Name |
Type |
Description |
1 |
ServerTime |
datetime |
Current database system timestamp as a datetime value, without the database time zone offset |
2 |
ServerTimeUTC |
datetime |
Current UTC time (Coordinated Universal Time) database system timestamp as a datetime value. The database time zone offset is not included |
Additional Notes
No specific constraints or behaviors noted for this API.
**Business Logic**
Use this API to fetch the current server time in both local and UTC format. This can be useful in applications where tracking of the server's real-time timestamp is required.