Experimental Physics and Industrial Control System
I notice the output format for date() for R3.14 is difference from
R3.13. In detail
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 |
+---------------------------------------------------------------------+
- Replies:
- Re: date format Kay-Uwe Kasemir
- Navigate by Date:
- Prev:
Accessing Date and Time information David Dudley
- Next:
Re: date format Kay-Uwe Kasemir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
Re: Accessing Date and Time information Andrew Johnson
- Next:
Re: date format Kay-Uwe Kasemir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025