Andrew Johnson
b32127c5de
libCom: Fix epicsTime::strftime() roll-over bug
...
Fractional seconds could round-up to .000 without
incrementing the integer seconds.
We can't actually do the latter, so we prevent the
roll-over and clamp at all 9's instead.
Idea from Eric Norum.
2014-01-29 16:52:22 -06:00
Jeff Hill
0dab032751
avoid c++ static initialization order issues
2011-04-05 09:23:22 -06:00
Jeff Hill
4b780b1011
avoid c++ static initialization order issues
2011-04-04 17:50:49 -06:00
Jeff Hill
fc3e876d57
avoid c++ static initialization order issues
2011-04-04 17:29:51 -06:00
Andrew Johnson
292a763d9a
Enhance generalTime subsystem with interrupt-context time & event requests.
2009-01-28 20:01:41 +00:00
Andrew Johnson
a3cd917de2
General Time, from Peter Denison, Eric Norum and many others...
2008-04-18 18:39:32 +00:00
Andrew Johnson
3a40dddccb
Give up trying to calculat epicsEpochOffset, which is a constant.
...
Also fixed incorrect NTP timescale conversion constant.
2008-03-14 20:50:39 +00:00
Andrew Johnson
4b7d838b20
Replaced epoch offset calculation, fixes problem on vxWorks.
2007-11-13 22:54:20 +00:00
Andrew Johnson
faf4b84463
Correct exception message.
2007-10-29 18:28:03 +00:00
Andrew Johnson
5568dd3dc3
Fixed compiler warning.
2007-02-09 21:18:35 +00:00
Andrew Johnson
ae06349563
Make fracFormatFind static.
...
Removed 'const' from epicsTime::strftime pointer args to match prototype,
needed by Sun C++ complier which doesn't find the symbol otherwise.
2007-01-02 19:37:57 +00:00
Jeff Hill
6ce83fc9e4
fixed throw specification
2006-12-22 19:35:37 +00:00
Jeff Hill
e0b4715c98
fixed mantis 279 - epicsTimeToStrftime problem with %06f format
2006-12-22 18:57:53 +00:00
Jeff Hill
e553c3ec56
added comment
2006-12-01 00:17:58 +00:00
Andrew Johnson
ecac0269dd
Stop "warning: `id' defined but not used" messages from gcc -- use a char[]
...
instead of a char* and they go away!
2006-11-16 19:32:13 +00:00
Jeff Hill
b3ff995884
fixed mantis 266
...
epicsTime <=> aitTimeStamp conversions dont work on 64 bit hosts
2006-06-29 15:28:36 +00:00
Jeff Hill
ee7c2ed829
fixed epicsTime <=> aitTimeStamp conversions dont work on 64 bit hosts
2006-06-22 00:20:08 +00:00
Jeff Hill
a49961afe6
I fixed the following issues:
...
1) The epicsTime constructor does not throw an exception when an invalid epicsTimeStamp is passed to it.
2) The "epicsTime::operator epicsTimeStamp ()" conversion operator should throw an exception instead of assert failing when it discovers that the internal state of the time stamp is invalid.
3) William Lupton's epicsTime::strftime doesnt add .OVF if the nano-seconds field is invalid. Kay's original issue.
4) William Lupton's epicsTime::strftime has a buffer overrun vulnerability.
5) Certain C interfaces to epicsTime were not bracketed by try catch blocks.
2006-03-21 00:58:43 +00:00
Jeff Hill
16caaa4a27
spelling in comment
2005-11-01 16:05:53 +00:00
Jeff Hill
e7aef148f9
fixed warnings on 64 bit architectures
2005-11-01 15:59:05 +00:00
Jeff Hill
a113540e50
fixed R3.14.7 wont build for vxWorks 6.0
2005-04-13 17:28:14 +00:00
Marty Kraimer
63f139adc5
epicsExit and epicsStdioRedirect
2004-08-27 16:04:26 +00:00
Jeff Hill
7166456564
throw srtandard exception
2004-01-09 01:06:38 +00:00
Andrew Johnson
c095f483e9
Typo, s/NTP_FRACTION DENOMINATOR/NTP_FRACTION_DENOMINATOR/
2003-10-29 19:51:12 +00:00
Jeff Hill
c26cd7fdce
architecture independent manipulation of NTP stamps
2003-10-28 18:56:56 +00:00
Jeff Hill
a28065c900
cleanup of questionable, but not incorrect code
2003-04-16 20:53:38 +00:00
Jeff Hill
8d318d9a99
suppress gnu warning
2002-12-19 01:29:57 +00:00
Jeff Hill
da20240ba4
code simplification
2002-12-05 22:02:26 +00:00
Jeff Hill
6b3c5002ec
removed constants
2002-10-23 22:17:57 +00:00
Jeff Hill
4254028028
lage constant needs to be unsigned
2002-09-20 16:20:54 +00:00
Jeff Hill
8870cf48b6
NTP time stamp conversion
2002-09-09 22:46:09 +00:00
Jeff Hill
25acc515c4
perform FILETIME conversions only on windows because
...
monolithic win32 header files are incompatible with other
things in EPICS and we cant include windows.h in osdTime.h
2002-09-07 00:11:06 +00:00
Jeff Hill
7c337a7257
workaround for SUNPRO bogosity
2002-09-04 17:51:08 +00:00
Jeff Hill
296c629c19
fixed linux warning
2002-09-04 17:02:28 +00:00
Jeff Hill
6ec7ac0e16
added conversion between epicsTime and win32 FILETIME
2002-09-04 16:30:37 +00:00
Jeff Hill
a687497578
added version string
2002-07-31 21:16:41 +00:00
Janet B. Anderson
93b0bf478d
Updated license comments.
2002-07-12 21:35:43 +00:00
Jeff Hill
387d47c79c
improved optimization
2002-06-25 23:10:47 +00:00
Jeff Hill
54076ffb12
cosmetic
2002-06-25 22:20:55 +00:00
Jeff Hill
0afd9ddbb8
cosmetic
2002-05-14 20:23:08 +00:00
Jeff Hill
a09a1f2beb
installed optimization for machines that dont have hardware floating point
2002-05-13 20:59:26 +00:00
Jeff Hill
75b572be78
improved dll interface
2002-03-22 02:03:18 +00:00
Jeff Hill
2496284e20
1) distinguish between struct tm in local timezone and a struct tm in UTC
...
2) added new osd routines to replace gmtime_t and localtime_t because
the vxWorks interface does not follow posix RT
2001-12-14 00:54:28 +00:00
Jeff Hill
61e6a84ae3
cosmetic
2001-10-16 22:43:51 +00:00
Jeff Hill
d19294499c
fixed strftime formating
2001-08-10 00:45:53 +00:00
Jeff Hill
71ccf13585
eliminate option to turn off exceptions
2001-06-12 17:54:30 +00:00
Jeff Hill
06bec39aa7
proper conversion from floating point offset to integer nsec
2001-06-06 19:33:25 +00:00
Jeff Hill
0b834904f4
fixed spelling
2001-02-21 16:33:40 +00:00
Jeff Hill
ca02b34b6f
convert tabs to spaces
2001-02-21 16:24:12 +00:00
Marty Kraimer
748f8f9131
replacement for osiTime
2001-01-29 20:17:09 +00:00