3rdparty
qwt
src
qwt_date.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Qwt Widget Library
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
9
10
#ifndef QWT_DATE_H
11
#define QWT_DATE_H
12
13
#include "
qwt_global.h
"
14
#include <qdatetime.h>
15
42
class
QWT_EXPORT
QwtDate
43
{
44
public
:
49
enum
Week0Type
50
{
58
FirstThursday,
59
66
FirstDay
67
};
68
75
enum
IntervalType
76
{
78
Millisecond,
79
81
Second,
82
84
Minute,
85
87
Hour,
88
90
Day,
91
93
Week,
94
96
Month,
97
99
Year
100
};
101
102
enum
103
{
105
JulianDayForEpoch = 2440588
106
};
107
108
static
QDate minDate();
109
static
QDate maxDate();
110
111
static
QDateTime toDateTime(
double
value,
112
Qt::TimeSpec = Qt::UTC );
113
114
static
double
toDouble
(
const
QDateTime& );
115
116
static
QDateTime ceil(
const
QDateTime&,
IntervalType
);
117
static
QDateTime floor(
const
QDateTime&,
IntervalType
);
118
119
static
QDate dateOfWeek0(
int
year,
Week0Type
);
120
static
int
weekNumber(
const
QDate&,
Week0Type
);
121
122
static
int
utcOffset(
const
QDateTime& );
123
124
static
QString toString(
const
QDateTime&,
125
const
QString&
format
,
Week0Type
);
126
};
127
128
#endif
QwtDate::Week0Type
Week0Type
Definition:
qwt_date.h:56
qwt_global.h
QwtDate::IntervalType
IntervalType
Definition:
qwt_date.h:82
format
auto format(const text_style &ts, const S &format_str, const Args &... args) -> std::basic_string< Char >
Definition:
color.h:543
toDouble
double toDouble(const void *data)
Definition:
dataload_zcm.cpp:196
QwtDate
A collection of methods around date/time values.
Definition:
qwt_date.h:42
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45