31 #ifndef vtkTimePointUtility_h
32 #define vtkTimePointUtility_h
34 #include "vtkCommonCoreModule.h"
47 static vtkTypeUInt64 DateToTimePoint(
48 int year,
int month,
int day);
54 static vtkTypeUInt64 TimeToTimePoint(
55 int hour,
int minute,
int second,
int millis = 0);
60 static vtkTypeUInt64 DateTimeToTimePoint(
61 int year,
int month,
int day,
62 int hour,
int minute,
int sec,
int millis = 0);
68 static void GetDate(vtkTypeUInt64
time,
69 int& year,
int& month,
int& day);
75 static void GetTime(vtkTypeUInt64
time,
76 int& hour,
int& minute,
int& second,
int& millis);
82 static void GetDateTime(vtkTypeUInt64
time,
83 int& year,
int& month,
int& day,
84 int& hour,
int& minute,
int& second,
int& millis);
89 static int GetYear(vtkTypeUInt64
time);
94 static int GetMonth(vtkTypeUInt64
time);
99 static int GetDay(vtkTypeUInt64
time);
104 static int GetHour(vtkTypeUInt64
time);
109 static int GetMinute(vtkTypeUInt64
time);
114 static int GetSecond(vtkTypeUInt64
time);
119 static int GetMillisecond(vtkTypeUInt64
time);
122 ISO8601_DATETIME_MILLIS = 0,
123 ISO8601_DATETIME = 1,
125 ISO8601_TIME_MILLIS = 3,
147 static vtkTypeUInt64 ISO8601ToTimePoint(
const char* str,
bool* ok = NULL);
167 static const char* TimePointToISO8601(
168 vtkTypeUInt64,
int format = ISO8601_DATETIME_MILLIS);
static const int MINUTES_PER_HOUR
static const int SECONDS_PER_MINUTE
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static const int MILLIS_PER_DAY
static const int MINUTES_PER_DAY
~vtkTimePointUtility() override
static const int MILLIS_PER_SECOND
static const int MILLIS_PER_MINUTE
a simple class to control print indentation
static const int MILLIS_PER_HOUR
static const int HOURS_PER_DAY
performs common time operations
static const int SECONDS_PER_DAY
static const int SECONDS_PER_HOUR
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...