itom
Loading...
Searching...
No Matches
helperDatetime.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom and its software development toolkit (SDK).
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 In addition, as a special exception, the Institut für Technische
15 Optik (ITO) gives you certain additional rights.
16 These rights are described in the ITO LGPL Exception version 1.0,
17 which can be found in the file LGPL_EXCEPTION.txt in this package.
18
19 itom is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
22 General Public Licence for more details.
23
24 You should have received a copy of the GNU Library General Public License
25 along with itom. If not, see <http://www.gnu.org/licenses/>.
26*********************************************************************** */
27
28#pragma once
29
30#ifdef __APPLE__
31extern "C++"
32{
33#endif
34
35/* includes */
36#include "commonGlobal.h"
37#include "typeDefs.h"
38
39#include <qdatetime.h>
40
41
42namespace ito {
43namespace datetime {
44 void ITOMCOMMONQT_EXPORT toYMDHMSU(const DateTime &dt, int &year, int &month, int &day, int &hour, int &minute, int &second, int &usecond);
45 DateTime ITOMCOMMONQT_EXPORT fromYMDHMSU(int year, int month, int day, int hour, int minute, int second, int usecond, int utcoffset);
46
48 QDateTime ITOMCOMMONQT_EXPORT toQDateTime(const DateTime &dt);
49
51 DateTime ITOMCOMMONQT_EXPORT toDateTime(const QDateTime &dt);
52} // end namespace datetime
53
54namespace timedelta {
56 void ITOMCOMMONQT_EXPORT toDSU(const TimeDelta &td, int &days, int &seconds, int &useconds);
57 TimeDelta ITOMCOMMONQT_EXPORT fromDSU(int days, int seconds, int useconds);
58
59} // end namespace timedelta
60} // end namespace ito
61
62#ifdef __APPLE__
63}
64#endif
Definition apiFunctionsGraph.cpp:40