RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

Types

This section lists the types used to support the time functionality.

Typedefs

typedef int R_CDECL R_TIME_CMP_FUNC_T (R_TIME_T *tm1, R_TIME_T *tm2)
 Compares two R_TIME_T structures tm1 and tm2. More...

typedef int R_CDECL R_TIME_EXPORT_FUNC_T (R_TIME_T *tm, int format, char *buffer, int buf_len)
 Exports an R_TIME_T structure tm in a given format. More...

typedef R_TIME_T* R_CDECL R_TIME_FUNC_T (R_TIME_T *tm)
 Returns the current time in the R_TIME_T structure tm. More...

typedef int R_CDECL R_TIME_IMPORT_FUNC_T (char *buffer, int buf_len, int format, R_TIME_T *tm)
 Converts the input data buffer from the given time format to R_TIME_T. More...

typedef R_TIME_T* R_CDECL R_TIME_OFFSET_FUNC_T (R_TIME_T *ret, R_TIME_T *tm, R_INT32 secs_offset, R_INT32 nano_offset)
 Adds an offset in seconds and nanoseconds to the given time value tm and returns the results. More...


Typedef Documentation

typedef int R_CDECL R_TIME_CMP_FUNC_T(R_TIME_T *tm1, R_TIME_T *tm2)
 

Compares two R_TIME_T structures tm1 and tm2.

Parameters:
tm1 [In] The first R_TIME_T reference to compare with tm2.
tm2 [In] The second R_TIME_T reference to compare with tm1.
See also:
R_time_cmp().

typedef int R_CDECL R_TIME_EXPORT_FUNC_T(R_TIME_T *tm, int format, char *buffer, int buf_len)
 

Exports an R_TIME_T structure tm in a given format.

Parameters:
tm [In] A pointer to input R_TIME_T time value.
NULL causes the function to fail.
format [In] The output format. One of:
  • R_TIME_EXTERNAL_FORMAT_UTC.
  • R_TIME_EXTERNAL_FORMAT_GT.
  • R_TIME_EXTERNAL_FORMAT_UNIX_BIG_ENDIAN.
  • R_TIME_EXTERNAL_FORMAT_UNIX_NATIVE.
  • R_TIME_EXTERNAL_FORMAT_SHRF.
  • buffer [Out] The buffer to hold the result of the conversion.
    NULL causes the function to fail.
    buf_len [In] The length of the output buffer.
    note.gif
    The operation fails if the length is not sufficient to store the result.
    See also:
    R_time_export().

    typedef R_TIME_T* R_CDECL R_TIME_FUNC_T(R_TIME_T *tm)
     

    Returns the current time in the R_TIME_T structure tm.

    Parameters:
    tm [Out] The R_TIME_T reference.
    See also:
    R_time().

    typedef int R_CDECL R_TIME_IMPORT_FUNC_T(char *buffer, int buf_len, int format, R_TIME_T *tm)
     

    Converts the input data buffer from the given time format to R_TIME_T.

    Parameters:
    buffer [In] The buffer containing formatted data for conversion.
    buf_len [In] The length of buffer.
    format [In] The input format. One of:
  • R_TIME_FMT_BIGENDIAN.
  • R_TIME_FMT_GENERALIZED_TIME.
  • R_TIME_FMT_UTC.
  • tm [Out] A pointer to the destination R_TIME_T structure.
    NULL causes the function to fail.
    See also:
    R_time_import().

    typedef R_TIME_T* R_CDECL R_TIME_OFFSET_FUNC_T(R_TIME_T *ret, R_TIME_T *tm, R_INT32 secs_offset, R_INT32 nano_offset)
     

    Adds an offset in seconds and nanoseconds to the given time value tm and returns the results.

    Parameters:
    ret [Out] A pointer to the result time.
    tm [In] A pointer to the time to offset.
    secs_offset [In] The offset in seconds (can be positive or negative).
    nano_offset [In] The nanoseconds component of the offset. This can be positive or negative but must not exceed a magnitude of 1 second.
    See also:
    R_time_offset().


    Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 072-001001-2100-001-000 - 2.1