messagingapp/msgui/msgapp/src/msgutils.cpp
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:Utility class having static helper methods.
       
    15  *
       
    16  */
       
    17 
       
    18 #include "msgutils.h"
       
    19 #include <QDateTime>
       
    20 #include <QString>
       
    21 
       
    22 //---------------------------------------------------------------
       
    23 // MsgUtils::dateTimeToString
       
    24 // gives string representation of dateTime.
       
    25 //---------------------------------------------------------------
       
    26 QString MsgUtils::dateTimeToString(const QDateTime& dateTime,
       
    27     const QString& format)
       
    28 {
       
    29     return dateTime.toString(format);
       
    30 }
       
    31 
       
    32 // EOF