AlkDateFormat

Search for usage in LXR

AlkDateFormat Class Reference

#include <alkdateformat.h>

Public Types

enum  ErrorCode {
  NoError = 0 , InvalidFormatString , InvalidFormatCharacter , InvalidDate ,
  InvalidDay , InvalidMonth , InvalidYear , InvalidYearLength
}
 

Public Member Functions

 AlkDateFormat (const AlkDateFormat &right)
 
 AlkDateFormat (const QString &format)
 
QString convertDate (const QDate &date)
 
QDate convertString (const QString &date, bool strict=true, unsigned centuryMidPoint=QDate::currentDate().year())
 
const QStringformat () const
 
ErrorCode lastError () const
 
QString lastErrorMessage () const
 
AlkDateFormatoperator= (const AlkDateFormat &)
 

Detailed Description

Universal date converter.

In 'strict' mode, this is designed to be compatible with the QIF profile date converter. However, that converter deals with the concept of an apostrophe format in a way I don't understand. So for the moment, they are 99% compatible, waiting on that issue. (acejones)

Definition at line 27 of file alkdateformat.h.

Member Enumeration Documentation

◆ ErrorCode

enum AlkDateFormat::ErrorCode

Definition at line 36 of file alkdateformat.h.

Constructor & Destructor Documentation

◆ AlkDateFormat() [1/2]

AlkDateFormat::AlkDateFormat ( const QString & format)
explicit

Definition at line 442 of file alkdateformat.cpp.

◆ AlkDateFormat() [2/2]

AlkDateFormat::AlkDateFormat ( const AlkDateFormat & right)

Definition at line 449 of file alkdateformat.cpp.

◆ ~AlkDateFormat()

AlkDateFormat::~AlkDateFormat ( )

Definition at line 456 of file alkdateformat.cpp.

Member Function Documentation

◆ convertDate()

QString AlkDateFormat::convertDate ( const QDate & date)

Definition at line 495 of file alkdateformat.cpp.

◆ convertString()

QDate AlkDateFormat::convertString ( const QString & date,
bool strict = true,
unsigned centuryMidPoint = QDate::currentDate().year() )

Definition at line 483 of file alkdateformat.cpp.

◆ format()

const QString & AlkDateFormat::format ( ) const

Definition at line 468 of file alkdateformat.cpp.

◆ lastError()

AlkDateFormat::ErrorCode AlkDateFormat::lastError ( ) const

Definition at line 473 of file alkdateformat.cpp.

◆ lastErrorMessage()

QString AlkDateFormat::lastErrorMessage ( ) const

Definition at line 478 of file alkdateformat.cpp.

◆ operator=()

AlkDateFormat & AlkDateFormat::operator= ( const AlkDateFormat & right)

Definition at line 461 of file alkdateformat.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.