[root] / trunk / core / base / src / TTimeStamp.cxx Repository:
ViewVC logotype

Log of /trunk/core/base/src/TTimeStamp.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 45957 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 12 13:56:25 2012 UTC (2 years, 4 months ago) by rdm
File length: 27977 byte(s)
Diff to previous 44507
make TTimeStamp compile again on FreeBSD. Fixes issue 97341.

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 27736 byte(s)
Diff to previous 43972
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 43972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 26 14:53:18 2012 UTC (2 years, 8 months ago) by rdm
File length: 27716 byte(s)
Diff to previous 30229
fix a very old (10 years) issue with wrong MacOS X TZ reporting (which for
OSX included the DST). Now we return purely the geographical TZ offset
from UTC independent of DST (as for all other platforms).

Revision 30229 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 17 14:48:03 2009 UTC (5 years, 4 months ago) by rdm
File length: 27960 byte(s)
Diff to previous 22961
use reentrant gmtime_r and localtime_r in case we compile with _REENTRANT.

Revision 22961 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by rdm
File length: 27752 byte(s)
Diff to previous 22430
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

Revision 22430 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 4 09:29:30 2008 UTC (6 years, 10 months ago) by brun
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27752 byte(s)
Diff to previous 22423
Fix coding conventions.

Revision 22423 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 13:15:55 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27766 byte(s)
Diff to previous 21435
From Robert Hatcher and me:
fix in TTimeStamp(UInt_t tloc, Bool_t isUTC,...) ctor. Use correctly mktime()
to convert localtime() back to UTC. 
Also optime printing for Mac OS X in DumpTMStruct().

Revision 21435 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 18 08:53:29 2007 UTC (7 years, 1 month ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27701 byte(s)
Diff to previous 20877
fix error in comment, fixes issue 32280.

Revision 20877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:17:07 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27688 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27688 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27740 byte(s)
Diff to previous 17837
remove :$ from tag line

Revision 17837 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 9 17:46:35 2007 UTC (7 years, 11 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27750 byte(s)
Diff to previous 16511
From Olivier and me:
Fix in TTimeStamp::GetZoneOffet(). The offset on Mac OS X and Free and Open
BSD was the oposite from Linux/Unix and Windows. The offset returned by this
routine is now defined as:

This is the value in seconds one must add to the local time to arrive at
Coordinated Universal Time, so it is negative east of the Prime Meridian.

the difference was due in the way the offset was obtained on the different
platforms. The redefinition results in the offset flipping sign on Mac/BSD
to be in lign with the other platforms.

Revision 16511 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 12 08:38:39 2006 UTC (8 years, 3 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27676 byte(s)
Diff to previous 12584
From Peter Hristov:
don't pass 0 pointer but pointer of vallue initialized to 0.

Revision 12584 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 2 07:51:51 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27667 byte(s)
Diff to previous 12128
Fix the remaining problems reported by the rule checker in directory base

Revision 12128 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 23 06:24:27 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27656 byte(s)
Diff to previous 12123
From Constantin Loizides
Use global Mutex instead of class static member

Revision 12123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 22 20:18:12 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27658 byte(s)
Diff to previous 11897
From Constantin Loizides

This patch implements:
- decentralized, automatic mutex initialization,
  see R__LOCKGUARD2 in TVirtualMutex
- PROOF parallel startup fixes
- more thread protection (in base, cont, meta, rest to be done)
- cleanups

From Eddy Offermann:
TString::Atoi and Atof are made const.

Revision 11897 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 27 10:17:11 2005 UTC (9 years, 8 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27559 byte(s)
Diff to previous 11896
fix compilation problems when not in thread mode.

Revision 11896 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 27 08:59:12 2005 UTC (9 years, 8 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 27647 byte(s)
Diff to previous 11200
From Constantin:
The attached patch makes TTimeStamp a lot more thread safe.
The "fake_ns" part is still a problem and probably needs a
mutex, not sure if it could be done otherwise (although the effect
is very small and only in the nsec range). I also don't
know if the _r versions are available everywhere but it should
be for the platform supporting threads (ifdef'ed on _REENTRANT).

Revision 11200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 28 17:28:12 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 26456 byte(s)
Diff to previous 9858
From Dmytro Kustov:
OpenBSD port.

Revision 9858 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 31 09:36:49 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 26435 byte(s)
Diff to previous 9852
add also GetMonth() on popular demand.

Revision 9852 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 27 15:47:24 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 25944 byte(s)
Diff to previous 9418
add the new methods:

   Int_t        GetDayOfYear(Bool_t inUTC = kTRUE, Int_t secOffset = 0) const;
   Int_t        GetDayOfWeek(Bool_t inUTC = kTRUE, Int_t secOffset = 0) const;
   Int_t        GetWeek(Bool_t inUTC = kTRUE, Int_t secOffset = 0) const;
   Bool_t       IsLeapYear(Bool_t inUTC = kTRUE, Int_t secOffset = 0) const;

and the new static utility functions:

   static Int_t   GetDayOfYear(Int_t day, Int_t month, Int_t year);
   static Int_t   GetDayOfWeek(Int_t day, Int_t month, Int_t year);
   static Int_t   GetWeek(Int_t day, Int_t month, Int_t year);

(IsLeapYear(Int_t year) already existed).

Revision 9418 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 7 22:42:40 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 21711 byte(s)
Diff to previous 6358
add code to decode DOS encoded UInt_t time value.

Revision 6358 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:46:51 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 19560 byte(s)
Diff to previous 5717
Several changes by Axel Naumann to install ROOT under Windows/CYGWIN
with the gcc3.2 compiler and the X11 environment.

Revision 5717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 19475 byte(s)
Diff to previous 5518
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.

Revision 5518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 31 07:27:37 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 19469 byte(s)
Diff to previous 5078
Make const all Copy functions.
WARNING: If your class implements a Copy function deriving
from TObject or one of the ROOT classes, you must make
your Copy function const.

Revision 5078 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 7 11:55:56 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 19463 byte(s)
Diff to previous 4667
add case for FreeBSD.

Revision 4667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 5 10:53:48 2002 UTC (12 years, 7 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 19436 byte(s)
Diff to previous 4319
fix in nanosecond treatment. Bug reported by Vincenzo.

Revision 4319 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 6 18:10:38 2002 UTC (12 years, 9 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 19292 byte(s)
Diff to previous 4234
timestamp was not correct on Win32, now it has 100ns precision.

Revision 4234 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 25 18:10:33 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 19207 byte(s)
Diff to previous 4232
fix compilation problem on Win32.

Revision 4232 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 25 16:24:02 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 19278 byte(s)
Diff to previous 4178
get time with microsecond precision on Linux/Unix and with 100ns precision
on Win32. Before we had only second precision.

Revision 4178 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 14 18:12:54 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 18432 byte(s)
Diff to previous 3903
change linux to R__LINUX.

Revision 3903 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 6 18:27:40 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 18430 byte(s)
Diff to previous 3835
patch for MacOS X by Keisuke Fujii <fujiik@jlcuxf.kek.jp>.

Revision 3835 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 2 10:09:34 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 18334 byte(s)
Diff to previous 3818
Remove a const specifier in the last argument of a constructor.

Revision 3818 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu Jan 31 14:09:25 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/base/src/TTimeStamp.cxx
File length: 18288 byte(s)
new TTimeStamp class by Robert Hatcher. This class provides time stamp
functionality with nano second precision and in a timezone independent
format.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9