if ( ! isValid() ) return QString();
//We use the KDE Date format specs.
- //Replace occurences of the following tokens with their
+ //Replace occurrences of the following tokens with their
//corresponding values:
//
// %Y The year, including centuries prefix (e.g., "1984")
QString result = date().toString( format );
//For the time format, use the following KDE format specs:
- //Replace occurences of the following tokens with their
+ //Replace occurrences of the following tokens with their
//corresponding values:
//
// %H Hour in 24h format, 2 digits
*@p format a QString describing the date format according to
*a subset of the KDE date string specification:
*
- *Any occurence of the following tokens in the format string
+ *Any occurrence of the following tokens in the format string
*are replaced with the corresponding value:
*
*@li %Y The year, including centuries prefix (e.g., "1984")
*/
bool setYMD( int y, int m, int d );
/**
- *@short Set the ExtDate acording to the given Julian Day.
+ *@short Set the ExtDate according to the given Julian Day.
*@p _jd the Julian Day of the date to be set
*@return true if the ExtDate is valid
*@note The Julian Day is a simple count of the number of days
*@return an ExtDate constructed from the string representation
*given as an argument.
*@p s The string representation of the date
- *@p format A string representing the date format, acording to
+ *@p format A string representing the date format, according to
*the KDE date string specification.
*@see ExtDate::toString( const QString &format )
*/
*@p format string representation of the date/time format, using
*the KDE date/time string specification:
*
- *Any occurence of the following tokens in the format string
+ *Any occurrence of the following tokens in the format string
*are replaced with the corresponding value:
*
*@li %Y The year, including centuries prefix (e.g., "1984")