public method IO2GTimeConverter.convert

Brief

Converts the date/time between time zones.

Declaration
C++
virtual DATE  convert (DATE dtSource, O2GTimeConverter::TimeZone fromZone, O2GTimeConverter::TimeZone toZone) = 0

Parameters
dtSource

The date and time to convert.

fromZone

The time zone to convert from.

toZone

The time zone to convert to.

Details

convert function [hide]

 IO2GResponseReaderFactory *factory = mSession->getResponseReaderFactory();
 IO2GTimeConverter *timeConverter = mSession->getTimeConverter();
 IO2GMarketDataSnapshotResponseReader *reader = factory->createMarketDataSnapshotReader(response);
 if (reader != 0)
 {
    int size = reader->size();
    for (int i = (size - 1); i >= 0; --i)
    {
        DATE dt = timeConverter->convert(reader->getDate(i), IO2GTimeConverter::UTC, IO2GTimeConverter::Local);
        //...
    }
    reader->release();
 }
 timeConverter->release();
 factory->release();

Declared in IO2GTimeConverter

back