customgui_datetime.h File Reference

Classes

struct  DateTime
 
class  DateTimeControl
 
class  DateTimeData
 

Macros

#define DATETIME_GUI
 
#define DATETIME_DATA
 
#define DATETIME_TIME_CONTROL
 
#define DATETIME_DATE_CONTROL
 
#define DATETIME_NOW_BUTTON
 
#define DATETIME_NO_SECONDS
 
#define DATETIME_SHOW_LABELS
 

Enumerations

enum class  DAYOFWEEK {
  MONDAY ,
  TUESDAY ,
  WEDNESDAY ,
  THURSDAY ,
  FRIDAY ,
  SATURDAY ,
  SUNDAY
}
 
enum class  MONTHOFYEAR {
  JANUARY ,
  FEBRUARY ,
  MARCH ,
  APRIL ,
  MAY ,
  JUNE ,
  JULY ,
  AUGUST ,
  SEPTEMBER ,
  OCTOBER ,
  NOVEMBER ,
  DECEMBER
}
 

Functions

Int32 CompareDateTime (const DateTime &a, const DateTime &b)
 
enum DAYOFWEEK MAXON_ENUM_LIST (DAYOFWEEK)
 
enum MONTHOFYEAR MAXON_ENUM_LIST (MONTHOFYEAR)
 
Float64 GetJulianDay (const DateTime &t)
 
DateTime FromJulianDay (Float64 j)
 
void GetDateTimeNow (DateTime &t)
 
void GetDateTimeNowGM (DateTime &t)
 
Bool LocalToGMTime (const DateTime &tLocal, DateTime &tGMT)
 
Bool GMTimeToLocal (const DateTime &tGMT, DateTime &tLocal)
 
DAYOFWEEK GetDayOfWeek (Int32 lYear, Int32 lMonth, Int32 lDay)
 
String FormatTime (const char *pszFormat, const DateTime &t)
 
Bool ParseTimeString (String timestr, Int32 &hour, Int32 &minute, Int32 &second)
 
Bool ParseDateString (String datestr, Int32 &year, Int32 &month, Int32 &day)
 
String TimeToString (const DateTime &d, const Bool bShowSeconds=true)
 
String DateToString (const DateTime &d)
 
String GetMonthName (Int month)
 
void ValidateDate (Int32 &year, Int32 &month, Int32 &day)
 
void ValidateTime (Int32 &hour, Int32 &minute, Int32 &second)
 

Variables

 MONDAY
 
 TUESDAY
 
 WEDNESDAY
 
 THURSDAY
 
 FRIDAY
 
 SATURDAY
 
 SUNDAY
 
 JANUARY
 
 FEBRUARY
 
 MARCH
 
 APRIL
 
 MAY
 
 JUNE
 
 JULY
 
 AUGUST
 
 SEPTEMBER
 
 OCTOBER
 
 NOVEMBER
 
 DECEMBER
 

Macro Definition Documentation

◆ DATETIME_GUI

#define DATETIME_GUI

DateTime custom GUI ID.

◆ DATETIME_DATA

#define DATETIME_DATA

DateTime custom data ID.