Transfers of date-time or interval data (Server)

For date-time or interval values to be portable when transferred across different computer architectures, the DataBlade API provides functions to handle type alignment and byte order.

Table 1. DataBlade API functions that handle type alignment and byte order
DataBlade API function Description
mi_get_datetime() Copies an aligned mi_datetime value, converting any difference in alignment or byte order on the client computer to that of the server computer
mi_get_interval() Copies an aligned mi_interval value, converting any difference in alignment or byte order on the client computer to that of the server computer
mi_put_datetime() Copies an aligned mi_datetime value, converting any difference in alignment or byte order on the server computer to that of the client computer
mi_put_interval() Copies an aligned mi_interval value, converting any difference in alignment or byte order on the server computer to that of the client computer

The mi_get_datetime(), mi_get_interval(), mi_put_datetime(), and mi_put_interval() functions are useful in the send and receive support function of an opaque data type that contains mi_datetime or mi_interval values. They allow you to ensure that DATETIME or INTERVAL values remained aligned when transferred to and from client applications.


Copyright© 2019 HCL Technologies Limited