EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: date format
From: Graham Waters <[email protected]>
To: Kay-Uwe Kasemir <[email protected]>
Cc: tech talk <[email protected]>
Date: Fri, 16 Mar 2007 14:18:44 -0700
Kay-Uwe Kasemir wrote:

On Mar 16, 2007, at 16:29 , Graham Waters wrote:


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").

At least some versions of strftime support these:
%A is replaced by national representation of the full weekday name.


%a is replaced by national representation of the abbreviated weekday
name.


%B is replaced by national representation of the full month name.

%b is replaced by national representation of the abbreviated month
name.
.. and epicsTimeToStrftime just calls the underlying strftime
after removing the format character for the nanoseconds (if used).


Not sure if that's available on vxWorks, RTEMS, ....

-Kay


Thanks, it worked with vxWorks.

--
+---------------------------------------------------------------------+
|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 |
+---------------------------------------------------------------------+




References:
date format Graham Waters
Re: date format Kay-Uwe Kasemir

Navigate by Date:
Prev: Re: date format Steven Hartman
Next: Timed Execution David Dudley
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: date format Steven Hartman
Next: Timed Execution David Dudley
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·