Function : Time

ConvertTextToTIMEDATEPAIR - Convert character time/date pair to TIMEDATE_PAIR.
----------------------------------------------------------------------------------------------------------

#include <misc.h>

STATUS LNPUBLIC ConvertTextToTIMEDATEPAIR(
const void far *IntlFormat,
const TFMT far *TextFormat,
char far * far *Text,
WORD MaxLength,
TIMEDATE_PAIR far *retTIMEDATE
);

Description :

This function converts a character time/date pair string into Domino binary TIMEDATE_PAIR format.

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.

The string syntax is: 1st_time/date_string + " - " + 2nd_time/date_string. The two strings must not be identical, otherwise an error will be returned.

Please note that this "-" seperator is not neccessarily the same as the date seperator provided by OSGetIntlSettings.


Parameters :

Sample Usage :


  td_string_ptr = &td_string_pair[0];
  if(error_status = ConvertTextToTIMEDATEPAIR(&intl_format,
                           &td_format, &td_string_ptr,
                           strlen(td_string_ptr), &binary_td_pair))
      goto Exit;


See Also :

ConvertTIMEDATEPAIRToText
----------------------------------------------------------------------------------------------------------