Function : Time

ConvertTIMEDATEPAIRToText - Converts binary TIMEDATE_PAIR to a character text string.
----------------------------------------------------------------------------------------------------------

#include <misc.h>

STATUS LNPUBLIC ConvertTIMEDATEPAIRToText(
const void far *IntlFormat,
const TFMT far *TextFormat,
const TIMEDATE_PAIR far *InputTime,
char far *retTextBuffer,
WORD TextBufferLength,
WORD far *retTextLength
);

Description :

This function converts a Domino binary TIMEDATE_PAIR structure into a character text string. The character text string consists of two date strings separated by " - ".

You may also optionally request a non-standard format for the output string by setting up a TFMT or INTLFORMAT structures. Use NULL if the standard "current" settings is acceptable.


Parameters :

Sample Usage :

 
  /* Convert Time/Date Pair to Text */
  binary_td_pair.Lower.Innards[0] = binary_td2.Innards[0];
  binary_td_pair.Lower.Innards[1] = binary_td2.Innards[1];
  binary_td_pair.Upper.Innards[0] = binary_td3.Innards[0];
  binary_td_pair.Upper.Innards[1] = binary_td3.Innards[1];
  td_string_ptr = &td_string_pair[0];
  if (error_status = ConvertTIMEDATEPAIRToText(&intl_format,
                                  &td_format, &binary_td_pair,
                                  td_string_ptr, MAXALPHATIMEDATEPAIR,
                                  &string_len))
      goto Exit;


See Also :

ConvertTextToTIMEDATEPAIR
----------------------------------------------------------------------------------------------------------