-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdatetimehelp.ui
More file actions
215 lines (215 loc) · 14.7 KB
/
Copy pathdatetimehelp.ui
File metadata and controls
215 lines (215 loc) · 14.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DateTimeHelp</class>
<widget class="QDialog" name="DateTimeHelp">
<property name="geometry">
<rect><x>0</x><y>0</y><width>820</width><height>620</height></rect>
</property>
<property name="windowTitle">
<string>Date-Time Format</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupExample">
<property name="title"><string>Common Format Examples (input date: 1/15/2024 2:30:45.123 PM)</string></property>
<property name="font">
<font><weight>75</weight><bold>true</bold></font>
</property>
<layout class="QVBoxLayout" name="exampleLayout">
<item>
<widget class="QTableWidget" name="exampleTable">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="verticalScrollBarPolicy"><enum>Qt::ScrollBarAlwaysOff</enum></property>
<property name="sizeAdjustPolicy"><enum>QAbstractScrollArea::AdjustToContents</enum></property>
<property name="editTriggers"><set>QAbstractItemView::NoEditTriggers</set></property>
<property name="alternatingRowColors"><bool>true</bool></property>
<attribute name="horizontalHeaderStretchLastSection"><bool>true</bool></attribute>
<attribute name="verticalHeaderVisible"><bool>false</bool></attribute>
<property name="columnCount"><number>2</number></property>
<property name="rowCount"><number>6</number></property>
<column><property name="text"><string>Format String</string></property></column>
<column><property name="text"><string>Result</string></property></column>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<item row="0" column="0"><property name="text"><string>yyyy-MM-dd HH:mm:ss</string></property></item>
<item row="0" column="1"><property name="text"><string>2024-01-15 14:30:45</string></property></item>
<item row="1" column="0"><property name="text"><string>yyyy-MM-dd HH:mm:ss.zzz</string></property></item>
<item row="1" column="1"><property name="text"><string>2024-01-15 14:30:45.123</string></property></item>
<item row="2" column="0"><property name="text"><string>MM/dd/yyyy h:mm:ss AP</string></property></item>
<item row="2" column="1"><property name="text"><string>01/15/2024 2:30:45 PM</string></property></item>
<item row="3" column="0"><property name="text"><string>d-MM-yyyy h:mm:ss</string></property></item>
<item row="3" column="1"><property name="text"><string>15-01-2024 2:30:45</string></property></item>
<item row="4" column="0"><property name="text"><string>dd MMM yyyy HH:mm</string></property></item>
<item row="4" column="1"><property name="text"><string>15 Jan 2024 14:30</string></property></item>
<item row="5" column="0"><property name="text"><string>yyyy/MM/dd HH:mm:ss.zzz</string></property></item>
<item row="5" column="1"><property name="text"><string>2024/01/15 14:30:45.123</string></property></item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="verticalScrollBarPolicy"><enum>Qt::ScrollBarAsNeeded</enum></property>
<property name="horizontalScrollBarPolicy"><enum>Qt::ScrollBarAsNeeded</enum></property>
<property name="widgetResizable"><bool>true</bool></property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect><x>0</x><y>0</y><width>780</width><height>800</height></rect>
</property>
<layout class="QVBoxLayout" name="scrollLayout">
<item>
<widget class="QLabel" name="labelNote">
<property name="text"><string>All other input characters will be treated as text. Any non-empty sequence of characters enclosed in single quotes will also be treated (stripped of the quotes) as text and not be interpreted as expressions.</string></property>
<property name="wordWrap"><bool>true</bool></property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelDateHeader">
<property name="text"><string>Date Format</string></property>
<property name="font">
<font><weight>75</weight><bold>true</bold></font>
</property>
</widget>
</item>
<item>
<widget class="QTableWidget" name="dateFormatTable">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="verticalScrollBarPolicy"><enum>Qt::ScrollBarAlwaysOff</enum></property>
<property name="sizeAdjustPolicy"><enum>QAbstractScrollArea::AdjustToContents</enum></property>
<property name="editTriggers"><set>QAbstractItemView::NoEditTriggers</set></property>
<property name="alternatingRowColors"><bool>true</bool></property>
<attribute name="horizontalHeaderStretchLastSection"><bool>true</bool></attribute>
<attribute name="verticalHeaderVisible"><bool>false</bool></attribute>
<property name="columnCount"><number>2</number></property>
<property name="rowCount"><number>10</number></property>
<column><property name="text"><string>Expression</string></property></column>
<column><property name="text"><string>Output</string></property></column>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<item row="0" column="0"><property name="text"><string>d</string></property></item>
<item row="0" column="1"><property name="text"><string>The day as a number without a leading zero (1 to 31)</string></property></item>
<item row="1" column="0"><property name="text"><string>dd</string></property></item>
<item row="1" column="1"><property name="text"><string>The day as a number with a leading zero (01 to 31)</string></property></item>
<item row="2" column="0"><property name="text"><string>ddd</string></property></item>
<item row="2" column="1"><property name="text"><string>The abbreviated localized day name (e.g. 'Mon' to 'Sun')</string></property></item>
<item row="3" column="0"><property name="text"><string>dddd</string></property></item>
<item row="3" column="1"><property name="text"><string>The long localized day name (e.g. 'Monday' to 'Sunday')</string></property></item>
<item row="4" column="0"><property name="text"><string>M</string></property></item>
<item row="4" column="1"><property name="text"><string>The month as a number without a leading zero (1 to 12)</string></property></item>
<item row="5" column="0"><property name="text"><string>MM</string></property></item>
<item row="5" column="1"><property name="text"><string>The month as a number with a leading zero (01 to 12)</string></property></item>
<item row="6" column="0"><property name="text"><string>MMM</string></property></item>
<item row="6" column="1"><property name="text"><string>The abbreviated localized month name (e.g. 'Jan' to 'Dec')</string></property></item>
<item row="7" column="0"><property name="text"><string>MMMM</string></property></item>
<item row="7" column="1"><property name="text"><string>The long localized month name (e.g. 'January' to 'December')</string></property></item>
<item row="8" column="0"><property name="text"><string>yy</string></property></item>
<item row="8" column="1"><property name="text"><string>The year as a two digit number (00 to 99)</string></property></item>
<item row="9" column="0"><property name="text"><string>yyyy</string></property></item>
<item row="9" column="1"><property name="text"><string>The year as a four digit number, possibly plus a leading minus sign for negative years</string></property></item>
</widget>
</item>
<item>
<widget class="QLabel" name="labelTimeHeader">
<property name="text"><string>Time Format</string></property>
<property name="font">
<font><weight>75</weight><bold>true</bold></font>
</property>
</widget>
</item>
<item>
<widget class="QTableWidget" name="timeFormatTable">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="verticalScrollBarPolicy"><enum>Qt::ScrollBarAlwaysOff</enum></property>
<property name="sizeAdjustPolicy"><enum>QAbstractScrollArea::AdjustToContents</enum></property>
<property name="editTriggers"><set>QAbstractItemView::NoEditTriggers</set></property>
<property name="alternatingRowColors"><bool>true</bool></property>
<attribute name="horizontalHeaderStretchLastSection"><bool>true</bool></attribute>
<attribute name="verticalHeaderVisible"><bool>false</bool></attribute>
<property name="columnCount"><number>2</number></property>
<property name="rowCount"><number>12</number></property>
<column><property name="text"><string>Expression</string></property></column>
<column><property name="text"><string>Output</string></property></column>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<row><property name="text"><string/></property></row>
<item row="0" column="0"><property name="text"><string>h</string></property></item>
<item row="0" column="1"><property name="text"><string>The hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)</string></property></item>
<item row="1" column="0"><property name="text"><string>hh</string></property></item>
<item row="1" column="1"><property name="text"><string>The hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)</string></property></item>
<item row="2" column="0"><property name="text"><string>H</string></property></item>
<item row="2" column="1"><property name="text"><string>The hour without a leading zero (0 to 23, even with AM/PM display)</string></property></item>
<item row="3" column="0"><property name="text"><string>HH</string></property></item>
<item row="3" column="1"><property name="text"><string>The hour with a leading zero (00 to 23, even with AM/PM display)</string></property></item>
<item row="4" column="0"><property name="text"><string>m</string></property></item>
<item row="4" column="1"><property name="text"><string>The minute without a leading zero (0 to 59)</string></property></item>
<item row="5" column="0"><property name="text"><string>mm</string></property></item>
<item row="5" column="1"><property name="text"><string>The minute with a leading zero (00 to 59)</string></property></item>
<item row="6" column="0"><property name="text"><string>s</string></property></item>
<item row="6" column="1"><property name="text"><string>The whole second, without any leading zero (0 to 59)</string></property></item>
<item row="7" column="0"><property name="text"><string>ss</string></property></item>
<item row="7" column="1"><property name="text"><string>The whole second, with a leading zero where applicable (00 to 59)</string></property></item>
<item row="8" column="0"><property name="text"><string>z</string></property></item>
<item row="8" column="1"><property name="text"><string>The fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). Thus "s.z" reports the seconds to full available (millisecond) precision without trailing zeroes.</string></property></item>
<item row="9" column="0"><property name="text"><string>zzz</string></property></item>
<item row="9" column="1"><property name="text"><string>The fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999).</string></property></item>
<item row="10" column="0"><property name="text"><string>AP or A</string></property></item>
<item row="10" column="1"><property name="text"><string>Interpret as an AM/PM time. A/AP will match an upper-case version of either QLocale::amText() or QLocale::pmText().</string></property></item>
<item row="11" column="0"><property name="text"><string>ap or a</string></property></item>
<item row="11" column="1"><property name="text"><string>Interpret as an am/pm time. a/ap will match a lower-case version of either QLocale::amText() or QLocale::pmText().</string></property></item>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons"><set>QDialogButtonBox::Close</set></property>
</widget>
</item>
</layout>
</widget>
<connections>
<connection>
<sender>buttonBox</sender><signal>rejected()</signal>
<receiver>DateTimeHelp</receiver><slot>reject()</slot>
</connection>
</connections>
</ui>