30 #ifndef vtkTimePointUtility_h
31 #define vtkTimePointUtility_h
45 static vtkTypeUInt64 DateToTimePoint(
46 int year,
int month,
int day);
52 static vtkTypeUInt64 TimeToTimePoint(
53 int hour,
int minute,
int second,
int millis = 0);
58 static vtkTypeUInt64 DateTimeToTimePoint(
59 int year,
int month,
int day,
60 int hour,
int minute,
int sec,
int millis = 0);
66 static void GetDate(vtkTypeUInt64
time,
67 int& year,
int& month,
int& day);
73 static void GetTime(vtkTypeUInt64
time,
74 int& hour,
int& minute,
int& second,
int& millis);
80 static void GetDateTime(vtkTypeUInt64
time,
81 int& year,
int& month,
int& day,
82 int& hour,
int& minute,
int& second,
int& millis);
86 static int GetYear(vtkTypeUInt64
time);
89 static int GetMonth(vtkTypeUInt64
time);
92 static int GetDay(vtkTypeUInt64
time);
95 static int GetHour(vtkTypeUInt64
time);
98 static int GetMinute(vtkTypeUInt64
time);
101 static int GetSecond(vtkTypeUInt64
time);
104 static int GetMillisecond(vtkTypeUInt64
time);
108 ISO8601_DATETIME_MILLIS = 0,
109 ISO8601_DATETIME = 1,
111 ISO8601_TIME_MILLIS = 3,
132 static vtkTypeUInt64 ISO8601ToTimePoint(
const char* str,
bool* ok = NULL);
145 static const char* TimePointToISO8601(
146 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
static const int MILLIS_PER_DAY
#define VTKCOMMONCORE_EXPORT
static const int MINUTES_PER_DAY
static const int MILLIS_PER_SECOND
static const int MILLIS_PER_MINUTE
virtual void PrintSelf(ostream &os, vtkIndent indent)
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