summaryrefslogtreecommitdiffstats
path: root/libtdeedu/extdate/test_extdate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtdeedu/extdate/test_extdate.cc')
-rw-r--r--libtdeedu/extdate/test_extdate.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/libtdeedu/extdate/test_extdate.cc b/libtdeedu/extdate/test_extdate.cc
index d70d3e94..63b2120b 100644
--- a/libtdeedu/extdate/test_extdate.cc
+++ b/libtdeedu/extdate/test_extdate.cc
@@ -277,16 +277,16 @@ void test6()
void test7()
{
std::cout << "Express the current date:\n" << std::endl;
- TQDate q = TQDate::currentDate(TQt::LocalTime);
- ExtDate e = ExtDate::currentDate(TQt::TimeSpec(TQt::LocalTime));
+ TQDate q = TQDate::tqcurrentDate(TQt::LocalTime);
+ ExtDate e = ExtDate::tqcurrentDate(TQt::TimeSpec(TQt::LocalTime));
std::cout << "TQt::LocalTime :: ExtDate : " << e.toString().local8Bit() << " TQDate : "
<< q.toString().local8Bit() << std::endl;
- q = TQDate::currentDate(TQt::UTC);
- e = ExtDate::currentDate(TQt::UTC);
+ q = TQDate::tqcurrentDate(TQt::UTC);
+ e = ExtDate::tqcurrentDate(TQt::UTC);
std::cout << "TQt::UTC :: ExtDate : " << e.toString().local8Bit() << " TQDate : "
<< q.toString().local8Bit() << std::endl;
- q = TQDate::currentDate();
- e = ExtDate::currentDate();
+ q = TQDate::tqcurrentDate();
+ e = ExtDate::tqcurrentDate();
std::cout << "<default> :: ExtDate : " << e.toString().local8Bit() << " TQDate : "
<< q.toString().local8Bit() << std::endl;
std::cout << "--------------------" << std::endl;
@@ -311,8 +311,8 @@ void test8() {
void test9() {
std::cout << "TQDateTime : ExtDateTime: \n" << std::endl;
- TQDateTime q = TQDateTime::currentDateTime();
- ExtDateTime e = ExtDateTime::currentDateTime();
+ TQDateTime q = TQDateTime::tqcurrentDateTime();
+ ExtDateTime e = ExtDateTime::tqcurrentDateTime();
std::cout << q.toString().local8Bit() << " : " << e.toString().local8Bit() << std::endl;
std::cout << "--------------------" << std::endl;