#include </home/clem/local/src/opie/library/timestring.h>
Static Public Member Functions | |
| static QString | dateString (const QDateTime &dt, bool ampm, bool seconds) |
| static QString | numberDateString (const QDate &d, DateFormat) |
| static QString | numberDateString (const QDate &d) |
| static QString | longNumberDateString (const QDate &d, DateFormat) |
| static QString | longNumberDateString (const QDate &d) |
| static QString | shortDate (const QDate &, DateFormat) |
| static QString | dateString (const QDate &, DateFormat) |
| static QString | longDateString (const QDate &, DateFormat) |
| static DateFormat | currentDateFormat () |
Convience functions which use currentDateFormat | |
| static QString | shortDate (const QDate &d) |
| static QString | dateString (const QDate &d) |
| static QString | longDateString (const QDate &d) |
Do not use as they don't honor system settings for AMPM | |
| static QString | dateString (const QDateTime &t, bool ampm=false) |
| static QString | timeString (const QTime &t, bool ampm, bool seconds) |
| static QString | timeString (const QTime &t, bool ampm=false) |
| static QString | shortTime (bool ampm, bool seconds) |
| static QString | shortTime (bool ampm=false) |
Static Private Member Functions | |
| static QString | dateString (const QDateTime &t, bool ampm, bool seconds, DateFormat) |
A utility class to use DateFormat more easily
Definition at line 98 of file timestring.h.
|
|
Definition at line 264 of file timestring.cpp. References TimeStringFormatKeeper::currentFormat(). Referenced by Clock::Clock(), dateString(), longDateString(), longNumberDateString(), numberDateString(), shortDate(), and Clock::updateClock(). |
|
||||||||||||||||||||
|
Definition at line 270 of file timestring.cpp. References buf, d, QDateTime::date(), longDateString(), t, QDateTime::time(), and timeString(). |
|
||||||||||||
|
Calls and translates DateFormat::wordDate with d and DateFormat::longNumber|DateFormat::longWord This means we will translate the month name and have a 4 digit year (2004) Example: '20 Feb 2004'
Definition at line 252 of file timestring.cpp. References DateFormat::longNumber, DateFormat::longWord, tr, and DateFormat::wordDate(). |
|
||||||||||||
|
Do not use they do not honor system wide AMPM settings. Also
Definition at line 341 of file timestring.cpp. References dateString(), and FALSE. |
|
||||||||||||||||
|
For internal use only.
Definition at line 116 of file timestring.h. References currentDateFormat(), and dateString(). |
|
|
This function calls the overloaded function with currentDateFormat()
Definition at line 111 of file timestring.h. References currentDateFormat(). Referenced by DateBook::appMessage(), Clock::Clock(), dateString(), JpegSlave::fullImageInfo(), JpegSlave::iconViewName(), initApplication(), AlarmItem::setAlarm(), VMemo::startRecording(), and Clock::updateClock(). |
|
||||||||||||
|
Calls and translates DateFormat::wordDate with DateFormat::showWeekDay|DateFormat::longNumber|DateFormat::longWord. This means you will have a string with the week day name, monthname and a four digit year. Example: 'Fr, 20 Feb 2004'
Definition at line 258 of file timestring.cpp. References DateFormat::longNumber, DateFormat::longWord, DateFormat::showWeekDay, tr, and DateFormat::wordDate(). |
|
|
This functions calls the olverloaded function with currentDateFormat()
Definition at line 113 of file timestring.h. References currentDateFormat(). Referenced by dateString(), DateBookWeek::generateNormalTooltext(), TaskEditorStatus::load(), Today::loadShellContent(), PIMListView::makeString(), Today::refresh(), DateButton::setDate(), DateBookDayWidget::setEventText(), TaskEditorStatus::slotCompChanged(), TaskEditorStatus::slotDueChanged(), DateEntry::slotEditNote(), DateBookWeek::slotShowEvent(), TaskEditorStatus::slotStartChanged(), and TaskEditorStatus::TaskEditorStatus(). |
|
|
This is an overloaded function and uses the currentDateFormat() of the system.
Definition at line 135 of file timestring.h. References currentDateFormat(), and longNumberDateString(). |
|
||||||||||||
|
Return the date as String in number coding (DD/MM/YYYY) depending on the date format. This uses the DateFormat::longNumber verbosity on the DateFormat::numberDate method
Definition at line 360 of file timestring.cpp. References DateFormat::longNumber, and DateFormat::numberDate(). Referenced by longNumberDateString(). |
|
|
This is an overloaded function and uses the currentDateFormat() of the system
Definition at line 132 of file timestring.h. References currentDateFormat(), and numberDateString(). |
|
||||||||||||
|
Return the date as String in number coding (DD/MM/YY) depending on the date format
Definition at line 356 of file timestring.cpp. References DateFormat::numberDate(). Referenced by TranInfo::datestr(), AbTable::findContactContact(), numberDateString(), RecMail::setDate(), ContactEditor::slotAnniversaryDateChanged(), ContactEditor::slotBirthdayDateChanged(), OContact::toRichText(), Opie::OPimContact::toRichText(), and ContactEditor::updateDatePicker(). |
|
||||||||||||
|
Calls DateFormat::wordDate with d Example: '20 Feb 04'
Definition at line 247 of file timestring.cpp. References DateFormat::wordDate(). |
|
|
|
Definition at line 351 of file timestring.cpp. References FALSE, and shortTime(). |
|
||||||||||||
|
Definition at line 322 of file timestring.cpp. References QDateTime::currentDateTime(), QDateTime::date(), QT_TRANSLATE_NOOP, QDateTime::time(), timeString(), and tr. Referenced by shortTime(), ZoneMap::showCity(), and CityTime::showTime(). |
|
||||||||||||
|
Definition at line 346 of file timestring.cpp. References FALSE, and timeString(). |
|
||||||||||||||||
|
Definition at line 283 of file timestring.cpp. References QString::append(), QString::arg(), QTime::hour(), QTime::minute(), QString::number(), QString::prepend(), QTime::second(), QTime::toString(), and tr. Referenced by DateBookEvent::DateBookEvent(), dateString(), DateBookWeek::generateNormalTooltext(), PIMListView::makeString(), AlarmItem::setAlarm(), RecMail::setDate(), DateBookDayWidget::setEventText(), shortTime(), and timeString(). |
1.4.2