aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_datetimeedit.cpp
diff options
context:
space:
mode:
authorGravatar Noldor2009-09-02 15:56:45 +0000
committerGravatar Noldor2009-09-02 15:56:45 +0000
commit6d86b51b1030208d99649829cea96de0b64b5ed7 (patch)
treec226a1dc617171c0a8f74fcce7d492486fcf24d8 /src/modules/objects/class_datetimeedit.cpp
parent- trailing whitespace cleanups all over the place (diff)
downloadKVIrc-6d86b51b1030208d99649829cea96de0b64b5ed7.tar.gz
KVIrc-6d86b51b1030208d99649829cea96de0b64b5ed7.tar.bz2
KVIrc-6d86b51b1030208d99649829cea96de0b64b5ed7.zip
Some fix in code and doc + removed obsolete code
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3466 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_datetimeedit.cpp')
-rw-r--r--src/modules/objects/class_datetimeedit.cpp31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/modules/objects/class_datetimeedit.cpp b/src/modules/objects/class_datetimeedit.cpp
index 763818474..4ffdcfa0d 100644
--- a/src/modules/objects/class_datetimeedit.cpp
+++ b/src/modules/objects/class_datetimeedit.cpp
@@ -4,7 +4,7 @@
// Creation date : Wed 30 Gen 2009 09:30:05 CEST by Carbone Alessandro
//
// This file is part of the KVirc irc client distribution
-// Copyright (C) 2000-2008 Szymon Stefanek (pragma at kvirc dot net)
+// Copyright (C) 2009 Carbone Alessandro (elfonol at gmail dot com)
//
// This program is FREE software. You can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -47,8 +47,33 @@
@description:
This widget provides a datetimeedit.
@functions:
- !fn: $setDate([<text:string>])
- !fn: <string> $date([<format:string>])
+ !fn: $setDate(<text:string>,<format:string>)
+ Sets the date of the widget using the format <format>. Possible values for format are:
+ d the day as number without a leading zero (1 to 31)
+ dd the day as number with a leading zero (01 to 31)
+ ddd the abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses QDate::shortDayName().
+ dddd the long localized day name (e.g. 'Monday' to 'Qt::Sunday'). Uses QDate::longDayName().
+ M the month as number without a leading zero (1-12)
+ MM the month as number with a leading zero (01-12)
+ MMM the abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses QDate::shortMonthName().
+ MMMM the long localized month name (e.g. 'January' to 'December'). Uses QDate::longMonthName().
+ yy the year as two digit number (00-99)
+ yyyy the year as four digit number
+ !fn: <string> $date(<format:string>)
+ Returns the widget date according to format.
+ !fn: $setTime(<text:string>,<format:string>)
+ Sets the date of the widget using the format <format>. Possibile values for format are:
+ h the hour without a leading zero
+ hh the hour with a leading zero
+ m the minute without a leading zero
+ mm the minute with a leading zero
+ s the second without a leading zero
+ ss the second with a leading zero
+ z the milliseconds without leading zeroes
+ zzz the milliseconds with leading zeroes
+ AP(or ap) use AM/PM display. AP will be replaced by either "AM" or "PM".
+ !fn: $time(<format:string>)
+ Returns the widget time according to format.
*/