vkrejc

FormatString Property (PITimeFormat Object)  - Milliseconds

Discussion created by vkrejc on Sep 18, 2012
Latest reply on Sep 19, 2012 by charlie@osisoft.com

Hi,

 

I need to retrieve time from PI server with precision on milliseconds. Is it possible?

 

Look at my code please:

 

 

 

 

 
          PITimeServer::_PITimeFormatPtr l_pTime;
          l_pTime.CreateInstance(__uuidof(PITimeServer::PITimeFormat));

          l_pTime->LocalDate = _s;
          l_pTime->FormatString = "yyyy/MM/ddThh:mm:ss.0000";
          m_bstrTimeStamp = l_pTime->OutputString;

 

 

I cannot find characters for milliseconds in PI_SDK Help.

 

Thank you

 

 

Outcomes