Home |
Previous Page | Next Page Data Manipulation > Using Date and Time Data Types > Date-Time or Interval Data >
For date-time or interval values to be
portable when transferred across different computer architectures,
the DataBlade API provides the following functions to 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.
For more information, see Conversion
of Opaque-Type Data with Computer-Specific Data Types.
Home |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]