The mi_lo_stat_mtime_usec() function
The mi_lo_stat_mtime_usec() function returns from an LO-status structure the microsecond component of the last-modification time for a smart large object.
Syntax
mi_integer mi_lo_stat_mtime_usec(LO_stat)
MI_LO_STAT *LO_stat;
- LO_stat
- A pointer to an LO-status structure that mi_lo_stat() allocates and fills in with status information.
Valid in client LIBMI application? | Valid in user-defined routine? |
---|---|
Yes | Yes |
Usage
The mi_lo_stat_mtime_usec() function
obtains the microsecond component of the last-modification time from
the LO-status structure that LO_stat references. The last-modification
time includes changes to user data (writes to the smart large object)
only.
Important: The database server does not maintain
the microsecond component of last-modification time. If your platform
supports the microsecond component of system time and you choose to
maintain it for smart large objects, you must explicitly set the last-modification
microsecond value with the mi_lo_utimes() function.
If
the microsecond component of last-modification time is supported and
maintained on your system, the mi_lo_stat_mtime_usec() function
can obtain it from an initialized LO-status structure. To return the
seconds component of the time of last modification, use the mi_lo_stat_mtime_usec() function.
The database server does maintain this seconds component of the last-modification
time.
Important: Before you call mi_lo_stat_mtime_usec(),
you must initialize an LO-status structure with the mi_lo_stat() function.
For more information about the last-modification time of a smart large object or about how to use an LO-status structure, see the HCL OneDB™ DataBlade® API Programmer's Guide.
Return values
- >=0
- The number of microseconds in the last-modification time for the smart large object that LO_stat references.
- MI_ERROR
- The function was not successful.