+ \c d | The day as a number without a leading zero (1 to 31) |
+ \c dd | The day as a number with a leading zero (01 to 31) |
+ \c ddd | The abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name, i.e. QLocale::system(). |
+ \c dddd | The long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name, i.e. QLocale::system(). |
+ \c M | The month as a number without a leading zero (1 to 12) |
+ \c MM | The month as a number with a leading zero (01 to 12) |
+ \c MMM | The abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name, i.e. QLocale::system(). |
+ \c MMMM | The long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name, i.e. QLocale::system(). |
+ \c yy | The year as a two digit number (00 to 99) |
+ \c yyyy | The year as a four digit number. If the year is negative, a minus sign is prepended, making five characters. |
+ \c h | The hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display) |
+ \c hh | The hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display) |
+ \c H | The hour without a leading zero (0 to 23, even with AM/PM display) |
+ \c HH | The hour with a leading zero (00 to 23, even with AM/PM display) |
+ \c m | The minute without a leading zero (0 to 59) |
+ \c mm | The minute with a leading zero (00 to 59) |
+ \c s | The whole second, without any leading zero (0 to 59) |
+ \c ss | The whole second, with a leading zero where applicable (00 to 59) |
+ \c z | 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. |
+ \c zzz | The fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). |
+ \c AP or \c A | Use AM/PM display. A/AP will be replaced by an upper-case version of either QLocale::amText() or QLocale::pmText(). |
+ \c ap or \c a | Use am/pm display. a/ap will be replaced by a lower-case version of either QLocale::amText() or QLocale::pmText(). |
+ \c t | The timezone (for example "CEST") |
+
+
+ Newlines can be inserted with \c "\n", literal strings (even when containing above expressions)
+ by encapsulating them using single-quotes. A literal single quote can be generated by using two
+ consecutive single quotes in the format.
+
+ \see setDateTimeSpec, setTimeZone
+*/
+void QCPAxisTickerDateTime::setDateTimeFormat(const QString &format)
+{
+ mDateTimeFormat = format;
}
/*!
- Sets the format that will be used to display time in the tick labels.
+ Sets the time spec that is used for creating the tick labels from corresponding dates/times.
+
+ The default value of QDateTime objects (and also QCPAxisTickerDateTime) is
+