Hey Vikas,
On Sun, Jul 29, 2018 at 8:49 AM, Vikas Mahato <vikasmahato0@gmail.com>
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 = {};
aDate.tm_year = 0;
aDate.tm_mon = 0;
aDate.tm_mday = 0;
aDate.tm_sec = getSecond(nDateTime);
aDate.tm_min = getMinute(nDateTime);
aDate.tm_hour = getHour(nDateTime);
aDate.tm_wday = 0;
aDate.tm_yday = 0;
// Add number of days
aDate.tm_mday += nDays;
std::mktime(&aDate);
return aDate;
}
with css::util:DateTIme. I am having trouble finding out what is the
equivalent for std::mktime in LO.
The correct class is tools' DateTime which has a constructor explicit
DateTime( DateTimeInitSystem );.
Regards,
Markus
Thanks,
Vikas Mahato
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.