Re: Equivalent of std::mktime in LO

2018-07-29 Thread Markus Mohrhard
Hey Vikas, On Sun, Jul 29, 2018 at 8:49 AM, Vikas Mahato wrote: > Hello All, > > I have a patch here, https://gerrit.libreoffice.org/#/c/58152/ and I am > trying to replace > > std::tm getDateTime(double nDateTime) > { > long nDays = std::trunc(nDateTime); > std::tm aDate = {}; > aDa

Equivalent of std::mktime in LO

2018-07-28 Thread Vikas Mahato
Hello All, I have a patch here, https://gerrit.libreoffice.org/#/c/58152/ and I am trying to replace std::tm getDateTime(double nDateTime) { long nDays = std::trunc(nDateTime); std::tm aDate = {}; aDate.tm_year = 0; aDate.tm_mon = 0; aDate.tm_mday = 0; aDate.tm_sec = getS