Experimental Physics and
| |||||||||||||||
|
tsStampToText() is replaced by epicsTimeToStrftime(). Is there any functionality somewhere to return the name of the month ("Mar" rather than "03"). For the moment I am doing something like this in a R3.14.8.2 applications. static char monthText[] = "JanFebMarAprMayJunJulAugSepOctNovDec"; epicsTimeStamp now; char nowText[40], monthText[6]; int imonth epicsTimeGetCurrent(&now); epicsTimeToStrftime(nowText,sizeof(nowText); "%Y/%m/%d %H:%M:%S.%06f",&now); /* Get time string */ sscanf(&nowText[5],"%d",&imonth); /* extract month as an integer */ sprintf(monthText,"%3.3s",&monthText[ (imonth-1)*3]); /* convert to month name */ Graham For every expert there is an equal and opposite expert -- Arthur C Clarke +---------------------------------------------------------------------+ |Graham Waters, Control System Eng phone: (604)-222-1047 ext 6531 | |TRIUMF --- University of B.C, Fax: (604)-222-7307 | |Vancouver, BC, Canada e-mail: [email protected] | | | |http://isacwserv.triumf.ca/edevel/homepage/graham01.html | +---------------------------------------------------------------------+
| ||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |