return wxDateTime(*tm);
}
+#if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400))
wxDateTime& wxDateTime::Set(time_t timet)
{
// assign first to avoid long multiplication overflow!
return *this;
}
+#endif
wxDateTime& wxDateTime::SetToCurrent()
{
- return *this = Now();
+ *this = Now();
+ return *this;
}
+#if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400))
wxDateTime::wxDateTime(time_t timet)
{
Set(timet);
}
+#endif
wxDateTime::wxDateTime(const struct tm& tm)
{
// wxTimeSpan construction
// ----------------------------------------------------------------------------
-wxTimeSpan::wxTimeSpan(int hours, int minutes, int seconds, int milliseconds)
+wxTimeSpan::wxTimeSpan(long hours, long minutes, long seconds, long milliseconds)
{
// assign first to avoid precision loss
- m_diff = (long)hours;
+ m_diff = hours;
m_diff *= 60l;
m_diff += minutes;
m_diff *= 60l;