FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEtime.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <OMEtype.h>

Macros

#define LOCALtime(arg)   localtime_r(arg, &tmOnStack)
 
#define GMTtime(arg)   gmtime_r(arg, &tmOnStack)
 
#define __BSD
 
#define GMT_OFFSET(ptr)   (0 - (ptr->tm_gmtoff))
 
#define TIMEZONE_NAME(ptr)   (ptr->tm_zone)
 

Functions

int OMEconvertLocalRelativeTimeToAbsolute (OMEtype &result, uint32_t tArg, int asGMT)
 Convert a local relative time to an OME absolute time reference. More...
 
uint32_t OMEconvertAbsoluteToLocalRelativeTime (const OMEtype &tData)
 Convert an OME absolute time reference to a local relative time. More...
 
int OMErfc1123Date (OMEtype &result, const OMEtype &argData)
 Format an OME absolute time reference as a data and time in RFC 1123 format. More...
 
int OMEiso8601Date (OMEtype &result, const OMEtype &argData)
 Format an OME absolute time reference as a date and time in ISO 8601 format. More...
 
int OMEconvertRFC1123date (OMEtype &result, const OMEtype &timeString)
 Convert a text string in RFC 1123 format into an OME absolute time reference. More...
 
int OMEtimeDifference (const OMEtype &time1, const OMEtype &time2)
 Compute difference between two OME absolute time references. More...
 

Macro Definition Documentation

◆ __BSD

#define __BSD

◆ GMT_OFFSET

#define GMT_OFFSET (   ptr)    (0 - (ptr->tm_gmtoff))

◆ GMTtime

#define GMTtime (   arg)    gmtime_r(arg, &tmOnStack)

◆ LOCALtime

#define LOCALtime (   arg)    localtime_r(arg, &tmOnStack)

◆ TIMEZONE_NAME

#define TIMEZONE_NAME (   ptr)    (ptr->tm_zone)
Generated: Fri Jul 31 2020 18:19:15
Support Information