| 
    Jpp 20.0.0-rc.3
    
   the software that should make you happy 
   | 
 
Auxiliary class for date and time. More...
#include <JDateAndTime.hh>
  
Public Member Functions | |
| JDateAndTime (const bool utc=false) | |
| Constructor.   | |
| JDateAndTime (const time_t t1, const bool utc=false) | |
| Constructor.   | |
| JDateAndTime (const time_t t1, const float f1, const bool utc=false) | |
| Constructor.   | |
| JDateAndTime (const std::string &buffer) | |
| Constructor.   | |
| JDateAndTime (const char *const buffer) | |
| Constructor.   | |
| bool | less (const JDateAndTime &object) const | 
| Less than method.   | |
| const tm * | operator-> () const | 
| Smart pointer.   | |
| bool | isUTC () const | 
| Check if UTC time.   | |
| time_t | getTime () const | 
| time   | |
| int | getSeconds () const | 
| seconds after the minute [0-59]   | |
| int | getMinutes () const | 
| minutes after the hour [0-59]   | |
| int | getHour () const | 
| hours after midnight [0-23]   | |
| int | getDay () const | 
| day of the month [1-31]   | |
| int | getMonth () const | 
| month of the year [1-12]   | |
| int | getYear () const | 
| year a.d.   | |
| int | getDST () const | 
| daylight saving time   | |
| float | getFS () const | 
| fraction of second   | |
| operator std::string () const | |
| Type conversion operator.   | |
| std::string | toString () const | 
| Get ASCII formatted date and time.   | |
| const JDateAndTime & | operator() (const bool utc=false) | 
| Set date and time.   | |
| void | set (const bool utc=false) | 
| Set to current local time.   | |
| void | set (const time_t t1, const bool utc=false) | 
| Set to given time.   | |
| void | set (const time_t t1, const float f1, const bool utc=false) | 
| Set to given time.   | |
| void | add (const time_t t1) | 
| Add given time.   | |
| void | sub (const time_t t1) | 
| Subtract given time.   | |
| double | getElapsedTime (const JDateAndTime &object) const | 
| Get elapsed time to given date and time.   | |
Static Public Member Functions | |
| static JDateAndTime | min (const bool utc=false) | 
| Get minimum date and time.   | |
| static JDateAndTime | max (const bool utc=false) | 
| Get maximum date and time.   | |
| static bool | isISO8601 (const std::string &buffer) | 
| Function to check ISO-8601 conformity.   | |
Private Member Functions | |
| tm * | get () const | 
| Get representation.   | |
Private Attributes | |
| time_t | ts | 
| value   | |
| float | fs = 0.0 | 
| fraction of second   | |
| tm * | tp | 
| representation   | |
| bool | utc = false | 
| UTC.   | |
Friends | |
| std::istream & | operator>> (std::istream &in, JDateAndTime &object) | 
| Read date and time from input stream.   | |
| std::ostream & | operator<< (std::ostream &out, const JDateAndTime &object) | 
| Write date and time to output stream.   | |
Auxiliary class for date and time.
The data structure time_t is used for the internal value and the data structure tm for the representation.
The I/O format conforms with ISO-8601 standard but it is also possible to parse ROOT TTimeStamp::AsString("c"). 
Definition at line 79 of file JDateAndTime.hh.
      
  | 
  inline | 
Constructor.
| utc | UTC | 
Definition at line 87 of file JDateAndTime.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Constructor.
| t1 | time [s] | 
| f1 | fraction of seconds | 
| utc | UTC | 
Definition at line 112 of file JDateAndTime.hh.
      
  | 
  inline | 
Constructor.
| buffer | date and time | 
Definition at line 123 of file JDateAndTime.hh.
      
  | 
  inline | 
Constructor.
| buffer | date and time | 
Definition at line 136 of file JDateAndTime.hh.
      
  | 
  inline | 
Less than method.
| object | date and time | 
Definition at line 150 of file JDateAndTime.hh.
      
  | 
  inline | 
Smart pointer.
Definition at line 161 of file JDateAndTime.hh.
      
  | 
  inline | 
Check if UTC time.
Definition at line 172 of file JDateAndTime.hh.
      
  | 
  inline | 
time
Definition at line 178 of file JDateAndTime.hh.
      
  | 
  inline | 
seconds after the minute [0-59]
Definition at line 180 of file JDateAndTime.hh.
      
  | 
  inline | 
minutes after the hour [0-59]
Definition at line 181 of file JDateAndTime.hh.
      
  | 
  inline | 
hours after midnight [0-23]
Definition at line 182 of file JDateAndTime.hh.
      
  | 
  inline | 
day of the month [1-31]
Definition at line 183 of file JDateAndTime.hh.
      
  | 
  inline | 
month of the year [1-12]
Definition at line 184 of file JDateAndTime.hh.
      
  | 
  inline | 
year a.d.
Definition at line 185 of file JDateAndTime.hh.
      
  | 
  inline | 
daylight saving time
Definition at line 186 of file JDateAndTime.hh.
      
  | 
  inline | 
fraction of second
Definition at line 188 of file JDateAndTime.hh.
      
  | 
  inlinestatic | 
Get minimum date and time.
| utc | UTC | 
Definition at line 197 of file JDateAndTime.hh.
      
  | 
  inlinestatic | 
Get maximum date and time.
| utc | UTC | 
Definition at line 209 of file JDateAndTime.hh.
      
  | 
  inline | 
Type conversion operator.
Definition at line 220 of file JDateAndTime.hh.
      
  | 
  inlinestatic | 
Function to check ISO-8601 conformity.
| buffer | date and time | 
Definition at line 232 of file JDateAndTime.hh.
      
  | 
  inline | 
Get ASCII formatted date and time.
Definition at line 253 of file JDateAndTime.hh.
      
  | 
  inline | 
Set date and time.
| utc | UTC | 
Definition at line 272 of file JDateAndTime.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Set to given time.
| t1 | time [s] | 
| utc | UTC | 
Definition at line 301 of file JDateAndTime.hh.
      
  | 
  inline | 
Set to given time.
| t1 | time [s] | 
| f1 | fraction of seconds | 
| utc | UTC | 
Definition at line 315 of file JDateAndTime.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Get elapsed time to given date and time.
| object | date and time | 
Definition at line 351 of file JDateAndTime.hh.
      
  | 
  inlineprivate | 
      
  | 
  friend | 
Read date and time from input stream.
| in | input stream | 
| object | date and time | 
Definition at line 364 of file JDateAndTime.hh.
      
  | 
  friend | 
Write date and time to output stream.
| out | output stream | 
| object | date and time | 
Definition at line 481 of file JDateAndTime.hh.
      
  | 
  private | 
value
Definition at line 497 of file JDateAndTime.hh.
      
  | 
  private | 
fraction of second
Definition at line 498 of file JDateAndTime.hh.
      
  | 
  mutableprivate | 
representation
Definition at line 499 of file JDateAndTime.hh.
      
  | 
  private | 
UTC.
Definition at line 500 of file JDateAndTime.hh.