ASN1C C/C++ Common Runtime  ASN1C v7.6.x
Functions
rtxDateTime.h File Reference
#include <time.h>
#include "rtxsrc/rtxContext.h"

Go to the source code of this file.

Functions

int rtxDateToString (const OSNumDateTime *pvalue, OSUTF8CHAR *buffer, size_t bufsize)
 
int rtxTimeToString (const OSNumDateTime *pvalue, OSUTF8CHAR *buffer, size_t bufsize)
 
int rtxDateTimeToString (const OSNumDateTime *pvalue, OSUTF8CHAR *buffer, size_t bufsize)
 
int rtxGYearToString (const OSNumDateTime *pvalue, OSUTF8CHAR *buffer, size_t bufsize)
 
int rtxGYearMonthToString (const OSNumDateTime *pvalue, OSUTF8CHAR *buffer, size_t bufsize)
 
int rtxGMonthToString (const OSNumDateTime *pvalue, OSUTF8CHAR *buffer, size_t bufsize)
 
int rtxGMonthDayToString (const OSNumDateTime *pvalue, OSUTF8CHAR *buffer, size_t bufsize)
 
int rtxGDayToString (const OSNumDateTime *pvalue, OSUTF8CHAR *buffer, size_t bufsize)
 
int rtxGetCurrDateTime (OSNumDateTime *pvalue)
 
int rtxGetCurrDateTimeString (char *buffer, OSSIZE bufsize, OSBOOL local)
 
int rtxCmpDate (const OSNumDateTime *pvalue1, const OSNumDateTime *pvalue2)
 
int rtxCmpDate2 (const OSNumDateTime *pvalue, OSINT32 year, OSUINT8 mon, OSUINT8 day, OSBOOL tzflag, OSINT32 tzo)
 
int rtxCmpTime (const OSNumDateTime *pvalue1, const OSNumDateTime *pvalue2)
 
int rtxCmpTime2 (const OSNumDateTime *pvalue, OSUINT8 hour, OSUINT8 min, OSREAL sec, OSBOOL tzflag, OSINT32 tzo)
 
int rtxCmpDateTime (const OSNumDateTime *pvalue1, const OSNumDateTime *pvalue2)
 
int rtxCmpDateTime2 (const OSNumDateTime *pvalue, OSINT32 year, OSUINT8 mon, OSUINT8 day, OSUINT8 hour, OSUINT8 min, OSREAL sec, OSBOOL tzflag, OSINT32 tzo)
 
int rtxParseDateString (const OSUTF8CHAR *inpdata, size_t inpdatalen, OSNumDateTime *pvalue)
 
int rtxParseTimeString (const OSUTF8CHAR *inpdata, size_t inpdatalen, OSNumDateTime *pvalue)
 
int rtxParseDateTimeString (const OSUTF8CHAR *inpdata, size_t inpdatalen, OSNumDateTime *pvalue)
 
int rtxParseGYearString (const OSUTF8CHAR *inpdata, size_t inpdatalen, OSNumDateTime *pvalue)
 
int rtxParseGYearMonthString (const OSUTF8CHAR *inpdata, size_t inpdatalen, OSNumDateTime *pvalue)
 
int rtxParseGMonthString (const OSUTF8CHAR *inpdata, size_t inpdatalen, OSNumDateTime *pvalue)
 
int rtxParseGMonthDayString (const OSUTF8CHAR *inpdata, size_t inpdatalen, OSNumDateTime *pvalue)
 
int rtxParseGDayString (const OSUTF8CHAR *inpdata, size_t inpdatalen, OSNumDateTime *pvalue)
 
int rtxMSecsToDuration (OSINT32 msecs, OSUTF8CHAR *buf, OSUINT32 bufsize)
 
int rtxDurationToMSecs (OSUTF8CHAR *buf, OSUINT32 bufsize, OSINT32 *msecs)
 
int rtxSetDateTime (OSNumDateTime *pvalue, struct tm *timeStruct)
 
int rtxGetGMTime (struct tm *pvalue, time_t timeMs)
 
int rtxGetLocalTime (struct tm *pvalue, time_t timeMs)
 
int rtxSetLocalDateTime (OSNumDateTime *pvalue, time_t timeMs)
 
int rtxSetUtcDateTime (OSNumDateTime *pvalue, time_t timeMs)
 
int rtxGetDateTime (const OSNumDateTime *pvalue, time_t *timeMs)
 
OSBOOL rtxDateIsValid (const OSNumDateTime *pvalue)
 
OSBOOL rtxTimeIsValid (const OSNumDateTime *pvalue)
 
OSBOOL rtxDateTimeIsValid (const OSNumDateTime *pvalue)
 
int rtxAscTime (char *buffer, OSSIZE bufsize, struct tm *pvalue)
 

Detailed Description

Common runtime functions for converting to and from various standard date/time formats.