- wxTime(); // current time
- wxTime(clockTy s) { sec = s; }
- void operator=(const wxTime& t) { sec = t.sec; } // Ordering required for some compilers
- wxTime(const wxTime& t) { (*this) = t ; }
- wxTime(hourTy h, minuteTy m, secondTy s =0, bool dst =FALSE);
- wxTime(const wxDate&, hourTy h =0, minuteTy m =0, secondTy s=0, bool dst =FALSE);
- // Convert to string
- operator char * (void);
- operator wxDate() const;
- bool operator<(const wxTime& t) const { return sec < t.sec; }
- bool operator<=(const wxTime& t) const { return sec <= t.sec; }
- bool operator>(const wxTime& t) const { return sec > t.sec; }
- bool operator>=(const wxTime& t) const { return sec >= t.sec; }
- bool operator==(const wxTime& t) const { return sec == t.sec; }
- bool operator!=(const wxTime& t) const { return sec != t.sec; }
- friend wxTime operator+(const wxTime& t, long s) { return wxTime(t.sec+s); }
- friend wxTime operator+(long s, const wxTime& t) { return wxTime(t.sec+s); }
- long operator-(const wxTime& t) const { return sec - t.sec; }
- wxTime operator-(long s) const { return wxTime(sec-s); }
- void operator+=(long s) { sec += s; }
- void operator-=(long s) { sec -= s; }
- bool IsBetween(const wxTime& a, const wxTime& b) const;
- hourTy GetHour() const; // hour in local time
- hourTy GetHourGMT() const; // hour in GMT
- minuteTy GetMinute() const; // minute in local time
- minuteTy GetMinuteGMT() const; // minute in GMT
- secondTy GetSecond() const; // second in local time or GMT
- clockTy GetSeconds() const { return sec; }
- wxTime Max(const wxTime&) const;
- wxTime Min(const wxTime&) const;
- static void SetFormat(const tFormat lFormat = wx12h,
- const tPrecision lPrecision = wxStdMinSec);
- char *FormatTime() const;
+ wxTime(); // current time
+ wxTime(clockTy s) { sec = s; }
+ void operator=(const wxTime& t) { sec = t.sec; } // Ordering required for some compilers
+ wxTime(const wxTime& t) { (*this) = t ; }
+ wxTime(hourTy h, minuteTy m, secondTy s =0, bool dst =FALSE);
+ wxTime(const wxDate&, hourTy h =0, minuteTy m =0, secondTy s=0, bool dst =FALSE);
+
+ // Convert to string
+#ifndef __SALFORDC__
+ operator wxChar * (void);
+ operator wxDate() const;
+#endif
+
+ bool operator<(const wxTime& t) const { return sec < t.sec; }
+ bool operator<=(const wxTime& t) const { return sec <= t.sec; }
+ bool operator>(const wxTime& t) const { return sec > t.sec; }
+ bool operator>=(const wxTime& t) const { return sec >= t.sec; }
+ bool operator==(const wxTime& t) const { return sec == t.sec; }
+ bool operator!=(const wxTime& t) const { return sec != t.sec; }
+ friend wxTime operator+(const wxTime& t, long s) { return wxTime(t.sec+s); }
+ friend wxTime operator+(long s, const wxTime& t) { return wxTime(t.sec+s); }
+ long operator-(const wxTime& t) const { return sec - t.sec; }
+ wxTime operator-(long s) const { return wxTime(sec-s); }
+ void operator+=(long s) { sec += s; }
+ void operator-=(long s) { sec -= s; }
+ bool IsBetween(const wxTime& a, const wxTime& b) const;
+
+ /// Get day
+ int GetDay() const;
+ /// Get month
+ int GetMonth() const;
+ /// Get year
+ int GetYear() const;
+ /// Get day of week (0=Sunday 6=Saturday)
+ int GetDayOfWeek() const;
+
+ hourTy GetHour() const; // hour in local time
+ hourTy GetHourGMT() const; // hour in GMT
+ minuteTy GetMinute() const; // minute in local time
+ minuteTy GetMinuteGMT() const; // minute in GMT
+ secondTy GetSecond() const; // second in local time or GMT
+ clockTy GetSeconds() const { return sec; }
+ secondTy GetSecondGMT() const ;
+ wxTime Max(const wxTime&) const;
+ wxTime Min(const wxTime&) const;
+ static void SetFormat(const tFormat lFormat = wx12h,
+ const tPrecision lPrecision = wxStdMinSec);
+ wxChar *FormatTime() const;