Command: MDATE

Purpose: Returns the date and time from the back-end GT.M or Caché server in their native language's so-called "$h" format. This format returns the date as the number of days since 1st January 1841, and the time as the number of seconds since midnight.

Arguments:

None

Response

Multi-line response

Server: *2
Server: $[length of date value]
Server: Date Value
Server: $[length of time value]
Server: Time Value

Example

Client: MDATE
Server: *2
Server: $5
Server: 61778
Server: $5
Server: 54942

For those familiar with the native language of GT.M and Caché systems, the earlier examples above are the equivalent of:

write $h